summaryrefslogtreecommitdiffstats
path: root/Classes/Topic.h
blob: 93c19251cf4736db80b62bd032d638ab5b46b788 (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
//
//  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;
	
}

@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;
+ (NSDate *) stringToDate:(NSString *)string;
- (void) serializeToDatabase:(FMDatabase *)db;
+ (NSString *) getImageUrl:(NSDictionary *)obj;
@end