-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMaterial.h
More file actions
70 lines (47 loc) · 1.58 KB
/
Copy pathMaterial.h
File metadata and controls
70 lines (47 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// Material.h
// Milestones
//
// Created by anonymous on 7/6/11.
// Copyright 2011 companyName Studio. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Material : NSObject {
NSString *idServerSide ;
NSString *name ;
NSString *productIdentifier;
// downloadable content related
NSString *coverURLString ;
NSString *coverFullPathAtDevice ; // fullpath of the cover page on user device
NSString *contentURLString ; // URI for the zipped content at server side.
NSString *contentFullPathAtDevice ;
BOOL downloaded ;
// Purcahse related
BOOL freeAvailable ; // YES: no need to buy, NO: to buy
BOOL purchased ; // YES: ,NO:
BOOL purchaseVerified ; // YES: ,NO: , probably used when the receipt verification is interrupted.
}
@property(retain) NSString *idServerSide ;
@property(retain) NSString *name ;
@property(retain) NSString *productIdentifier;
//
@property(retain) NSString *coverURLString ;
@property(retain) NSString *coverFullPathAtDevice ;
@property(retain) NSString *contentURLString ;
@property(retain) NSString *contentFullPathAtDevice ;
-(BOOL)isDownloaded ;
-(void)setDownloaded:(BOOL)val;
//
-(BOOL)isFreeAvailable ;
-(void) setFreeAvailable:(BOOL)val;
-(BOOL)isPurchased ;
-(void) setPurchased:(BOOL) val;
-(BOOL)isPurchaseVerified ;
-(void) setPurchaseVerified:(BOOL)val;
//
-(id) initWithDictionaryInfo:(NSDictionary*)data ;
-(void) updateWithNewInfo:(NSDictionary *)data ;
-(BOOL) save ;
+(Material *) findByIdentifier:(NSString *)identifier;
-(id) initWithName:(NSString *)aName andPath:(NSString *)filefullPath ;
@end