summaryrefslogtreecommitdiffstats
path: root/Classes/Source.h
blob: 1793d4bb4a50678fa769f125f901d3d7f5b69729 (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
//
//  Source.h
//  PicCast
//
//  Created by Matthew Handler on 4/25/11.
//  Copyright 2011 Earl Industries. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "FMResultSet.h"

@interface Source : NSObject {
	NSString *title;
	NSString *category;
	BOOL subscribed;
	NSNumber *foreignId;
	NSString *favicon;
}

@property (retain) NSString *favicon;
@property (retain) NSString *category;
@property (retain) NSString *title;
@property BOOL subscribed;
@property (retain) NSNumber *foreignId;

+ (Source *) initFromDatabaseRow:(FMResultSet *)result;
+ (Source *) initWithJsonObject:(NSDictionary *)obj;
- (void) serializeToDb:(FMDatabase *)db;

@end