diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-25 16:16:04 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-25 16:16:04 -0400 |
commit | 08dd9e08a6f712f4c599edb26dddd3ea7c73070a (patch) | |
tree | 0f52de5b4a4c8a225887b3ab5ccb6fcc76f2a194 /Classes/Source.h | |
parent | ab0c357216564967ccbb900923ead3830a13752b (diff) | |
download | piccast-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.h | 29 |
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 |