// // Source.h // PicCast // // Created by Matthew Handler on 4/25/11. // Copyright 2011 Earl Industries. All rights reserved. // #import #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