From 08dd9e08a6f712f4c599edb26dddd3ea7c73070a Mon Sep 17 00:00:00 2001 From: matt handler Date: Mon, 25 Apr 2011 16:16:04 -0400 Subject: source view edit is at a stable state, cleaned up some stuff, need to connect feeds to it but waiting on fucking bryan that's right, i'm going to be fucking bryan --- Classes/Source.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Classes/Source.h (limited to 'Classes/Source.h') diff --git a/Classes/Source.h b/Classes/Source.h new file mode 100644 index 0000000..84703ee --- /dev/null +++ b/Classes/Source.h @@ -0,0 +1,29 @@ +// +// 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 -- cgit v1.2.3