blob: 84703eee093bdb556caa36dd90c9e0128a7196db (
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
|
//
// 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;
NSInteger foreignId;
}
@property (retain) NSString *category;
@property (retain) NSString *title;
@property BOOL subscribed;
@property NSInteger foreignId;
+ (Source *) initFromDatabaseRow:(FMResultSet *)result;
+ (Source *) initWithJsonObject:(NSDictionary *)obj;
- (void) serializeToDb:(FMDatabase *)db;
@end
|