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

@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;
+ (NSString *) dateToString:(NSDate *)date;
+ (NSDate *) stringToDate:(NSString *)string;

@end