Revision 623869ee Classes/StorageObject.m
b/Classes/StorageObject.m | ||
---|---|---|
13 | 13 |
|
14 | 14 |
@implementation StorageObject |
15 | 15 |
|
16 |
@synthesize name, fullPath, hash, bytes, contentType, lastModified, data, metadata; |
|
16 |
@synthesize name, fullPath, hash, bytes, contentType, lastModified, data, publicURI, metadata;
|
|
17 | 17 |
|
18 | 18 |
#pragma mark - |
19 | 19 |
#pragma mark Serialization |
... | ... | |
63 | 63 |
object.bytes = [[dict objectForKey:@"bytes"] intValue]; |
64 | 64 |
object.contentType = [dict objectForKey:@"content_type"]; |
65 | 65 |
object.lastModified = [ComputeModel dateFromString:[dict objectForKey:@"last_modified"]]; |
66 |
|
|
66 |
object.publicURI = [dict objectForKey:@"x_object_public"]; |
|
67 |
|
|
67 | 68 |
object.metadata = [NSMutableDictionary dictionary]; |
68 | 69 |
for (NSString *key in dict) { |
69 | 70 |
if ([key hasPrefix:@"x_object_meta_"]) { |
Also available in: Unified diff