Revision 7ac1bf11 asi-http-request-with-pithos/Classes/Pithos/ASIPithosContainerRequest.m
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosContainerRequest.m | ||
---|---|---|
114 | 114 |
} |
115 | 115 |
|
116 | 116 |
- (NSUInteger)objectCount { |
117 |
return [[[self responseHeaders] objectForKey:@"X-Container-Object-Count"] intValue]; |
|
117 |
return [[[self responseHeaders] objectForKey:@"X-Container-Object-Count"] integerValue];
|
|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
- (NSUInteger)bytesUsed { |
121 |
return [[[self responseHeaders] objectForKey:@"X-Container-Bytes-Used"] intValue]; |
|
121 |
return [[[self responseHeaders] objectForKey:@"X-Container-Bytes-Used"] integerValue];
|
|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
- (NSUInteger)blockSize { |
125 |
return [[[self responseHeaders] objectForKey:@"X-Container-Block-Size"] intValue]; |
|
125 |
return [[[self responseHeaders] objectForKey:@"X-Container-Block-Size"] integerValue];
|
|
126 | 126 |
} |
127 | 127 |
|
128 | 128 |
- (NSString *)blockHash { |
... | ... | |
436 | 436 |
} else if ([elementName isEqualToString:@"x_object_uuid"]) { |
437 | 437 |
currentObject.UUID = currentContent; |
438 | 438 |
} else if ([elementName isEqualToString:@"bytes"]) { |
439 |
currentObject.bytes = [currentContent intValue]; |
|
439 |
currentObject.bytes = [currentContent integerValue];
|
|
440 | 440 |
} else if ([elementName isEqualToString:@"content_type"]) { |
441 | 441 |
currentObject.contentType = currentContent; |
442 | 442 |
} else if ([elementName isEqualToString:@"last_modified"]) { |
Also available in: Unified diff