summaryrefslogtreecommitdiffstats
path: root/Classes/Source.h
diff options
context:
space:
mode:
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