summaryrefslogtreecommitdiffstats
path: root/Classes/Topic.m
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-26 18:05:17 -0400
committermatt handler <matt.handler@gmail.com>2011-04-26 18:05:17 -0400
commit39478a90674f2b4238ba1cfaa49908deb0200e24 (patch)
treeb906aa9132fc883a5f62cf177ddcea97843b2003 /Classes/Topic.m
parent1ee16b02d54bd8c71ae365bdb56d7389702839ea (diff)
downloadpiccast-app-39478a90674f2b4238ba1cfaa49908deb0200e24.tar.gz
piccast-app-39478a90674f2b4238ba1cfaa49908deb0200e24.zip
aww yeah it works
Diffstat (limited to 'Classes/Topic.m')
-rw-r--r--Classes/Topic.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Classes/Topic.m b/Classes/Topic.m
index 8b7ec20..12364f8 100644
--- a/Classes/Topic.m
+++ b/Classes/Topic.m
@@ -29,6 +29,7 @@
topic.releaseDate = [result dateForColumn:@"releaseDate"];
topic.category = [result stringForColumn:@"category"];
topic.picCount = [NSNumber numberWithInt:[result intForColumn:@"picCount"]];
+ topic.foreignId = [NSNumber numberWithInt:[result intForColumn:@"foreignId"]];
return topic;
}
@@ -44,7 +45,7 @@
topic.description = [obj objectForKey:@"description"];
topic.releaseDate = [NSDate dateWithTimeIntervalSince1970:[[obj objectForKey:@"created_unixtime"] doubleValue]];
topic.category = [obj objectForKey:@"category"];
- topic.picCount = [NSNumber numberWithInt:10]; //[obj objectForKey:@"picCount"];
+ topic.picCount = [obj objectForKey:@"pic_count"];
return topic;
}