summaryrefslogtreecommitdiffstats
path: root/Classes/Topic.m
diff options
context:
space:
mode:
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;
}