blob: fd01bfb50b1c9091bbcfd48fbeab3feeaa0b617f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//
// Topic.h
// acidcow
//
// Created by Matthew Handler on 4/16/11.
// Copyright 2011 Earl Industries. All rights reserved.
//
#import "FMResultSet.h"
#import <UIKit/UIKit.h>
@interface Topic : NSObject {
NSString *title;
NSString *description;
NSDate *releaseDate;
NSString *category;
NSString *iconUrl;
NSNumber *picCount;
NSString *guid;
NSNumber *foreignId;
NSNumber *sourceId;
}
@property (nonatomic, retain) NSNumber *sourceId;
@property (nonatomic, retain) NSNumber *foreignId;
@property (nonatomic, copy) NSNumber *picCount;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *guid;
@property (nonatomic, copy) NSString *description;
@property (nonatomic, copy) NSDate *releaseDate;
@property (nonatomic, copy) NSString *category;
@property (nonatomic, copy) NSString *iconUrl;
+ (Topic *) initFromDatabaseRow:(FMResultSet *)result;
+ (Topic *) initWithJsonObject:(NSDictionary *)obj;
+ (NSString *) dateToString:(NSDate *)date;
- (void) serializeToDatabase:(FMDatabase *)db;
+ (NSString *) getImageUrl:(NSDictionary *)obj;
@end
|