root / Classes / StorageObject.h @ 64929bae
History | View | Annotate | Download (1.1 kB)
1 |
//
|
---|---|
2 |
// Object.h
|
3 |
// OpenStack
|
4 |
//
|
5 |
// Created by Mike Mayo on 12/7/10.
|
6 |
// The OpenStack project is provided under the Apache 2.0 license.
|
7 |
//
|
8 |
|
9 |
#import <Foundation/Foundation.h>
|
10 |
|
11 |
|
12 |
@interface StorageObject : NSObject <NSCoding> {
|
13 |
NSString *name; |
14 |
NSString *fullPath; |
15 |
NSString *hash; |
16 |
NSUInteger bytes; |
17 |
NSString *contentType; |
18 |
NSDate *lastModified; |
19 |
NSData *data; |
20 |
NSString *publicURI; |
21 |
NSString *sharing; |
22 |
NSMutableDictionary *metadata; |
23 |
} |
24 |
|
25 |
@property (nonatomic, retain) NSString *name;
|
26 |
@property (nonatomic, retain) NSString *fullPath;
|
27 |
@property (nonatomic, retain) NSString *hash;
|
28 |
@property (nonatomic, assign) NSUInteger bytes;
|
29 |
@property (nonatomic, retain) NSString *contentType;
|
30 |
@property (nonatomic, retain) NSDate *lastModified;
|
31 |
@property (nonatomic, retain) NSData *data;
|
32 |
@property (nonatomic, retain) NSString *publicURI;
|
33 |
@property (nonatomic, retain) NSString *sharing;
|
34 |
@property (nonatomic, retain) NSMutableDictionary *metadata;
|
35 |
|
36 |
- (NSString *)humanizedBytes; |
37 |
+ (StorageObject *)fromJSON:(NSDictionary *)dict; |
38 |
- (void)setPropertiesfromResponseHeaders:(NSDictionary *)headers;
|
39 |
|
40 |
- (BOOL)isPlayableMedia; |
41 |
|
42 |
@end
|