// // 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; 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