summaryrefslogtreecommitdiffstats
path: root/Classes/Source.h
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-25 16:16:04 -0400
committermatt handler <matt.handler@gmail.com>2011-04-25 16:16:04 -0400
commit08dd9e08a6f712f4c599edb26dddd3ea7c73070a (patch)
tree0f52de5b4a4c8a225887b3ab5ccb6fcc76f2a194 /Classes/Source.h
parentab0c357216564967ccbb900923ead3830a13752b (diff)
downloadpiccast-app-08dd9e08a6f712f4c599edb26dddd3ea7c73070a.tar.gz
piccast-app-08dd9e08a6f712f4c599edb26dddd3ea7c73070a.zip
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
Diffstat (limited to 'Classes/Source.h')
-rw-r--r--Classes/Source.h29
1 files changed, 29 insertions, 0 deletions
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 <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