Added object sharing functionality.
[pithos-ios] / Classes / StorageObject.m
index 2b3cc80..6094f81 100755 (executable)
@@ -13,7 +13,7 @@
 
 @implementation StorageObject
 
-@synthesize name, fullPath, hash, bytes, contentType, lastModified, data, publicURI, metadata;
+@synthesize name, fullPath, hash, bytes, contentType, lastModified, data, publicURI, sharing, metadata;
 
 #pragma mark -
 #pragma mark Serialization
@@ -64,6 +64,7 @@
     object.contentType = [dict objectForKey:@"content_type"];
     object.lastModified = [ComputeModel dateFromString:[dict objectForKey:@"last_modified"]];
     object.publicURI = [dict objectForKey:@"x_object_public"];
+    object.sharing = [dict objectForKey:@"x_object_sharing"];
         
     object.metadata = [NSMutableDictionary dictionary];
     for (NSString *key in dict) {