Revision 7ac1bf11

b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccount.m
46 46

  
47 47
- (NSString *)description {
48 48
    return [NSString stringWithFormat:@"name: %@, containerCount: %lu, bytesUsed: %lu, untilTimestamp: %@, groups: %@, policy: %@, metadata: %@, lastModified: %@", 
49
            name, containerCount, bytesUsed, untilTimestamp, groups, metadata, policy, lastModified];
49
            name, containerCount, bytesUsed, untilTimestamp, groups, policy, metadata, lastModified];
50 50
}
51 51

  
52 52
- (void) dealloc {
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccountRequest.m
104 104
}
105 105

  
106 106
- (NSUInteger)containerCount {
107
	return [[[self responseHeaders] objectForKey:@"X-Account-Container-Count"] intValue];
107
	return [[[self responseHeaders] objectForKey:@"X-Account-Container-Count"] integerValue];
108 108
}
109 109

  
110 110
- (NSUInteger)bytesUsed {
111
	return [[[self responseHeaders] objectForKey:@"X-Account-Bytes-Used"] intValue];
111
	return [[[self responseHeaders] objectForKey:@"X-Account-Bytes-Used"] integerValue];
112 112
}
113 113

  
114 114
- (NSDate *)untilTimestamp {
......
283 283
	if ([elementName isEqualToString:@"name"]) {
284 284
        currentContainer.name = currentContent;
285 285
	} else if ([elementName isEqualToString:@"count"]) {
286
        currentContainer.count = [currentContent intValue];
286
        currentContainer.count = [currentContent integerValue];
287 287
	} else if ([elementName isEqualToString:@"bytes"]) {
288
        currentContainer.bytes = [currentContent intValue];
288
        currentContainer.bytes = [currentContent integerValue];
289 289
    } else if ([elementName isEqualToString:@"last_modified"]) {
290 290
        currentContainer.lastModified = [[self dateFormatterWithFormatId:0] dateFromString:
291 291
                                         [currentContent stringByReplacingOccurrencesOfString:@":" 
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"]) {
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosObjectRequest.m
218 218
- (NSUInteger)objectContentLength {
219 219
    NSString *objectContentLengthString = [[self responseHeaders] objectForKey:@"Content-Length"];
220 220
    if (objectContentLengthString)
221
        return [objectContentLengthString intValue];
221
        return [objectContentLengthString integerValue];
222 222
    return 0;
223 223
}
224 224

  
......
1651 1651
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict {
1652 1652
	self.currentElement = elementName;
1653 1653
    if ((objectRequestType == ASIPithosObjectRequestHashmap) && [elementName isEqualToString:@"object"]) {
1654
        blockSize = [[attributeDict valueForKey:@"block_size"] intValue];
1654
        blockSize = [[attributeDict valueForKey:@"block_size"] integerValue];
1655 1655
        blockHash = [[NSString alloc] initWithString:[attributeDict valueForKey:@"block_hash"]];
1656
        bytes = [[attributeDict valueForKey:@"bytes"] intValue];
1656
        bytes = [[attributeDict valueForKey:@"bytes"] integerValue];
1657 1657
    } else if ((objectRequestType == ASIPithosObjectRequestVersions) && [elementName isEqualToString:@"version"]) {
1658 1658
        self.currentObject = [ASIPithosObject object];
1659 1659
        currentObject.versionTimestamp = [NSDate dateWithTimeIntervalSince1970:[[attributeDict valueForKey:@"timestamp"] doubleValue]];
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosRequest.m
146 146
	if ([elementName isEqualToString:@"name"]) {
147 147
        currentAccount.name = currentContent;
148 148
	} else if ([elementName isEqualToString:@"count"]) {
149
        currentAccount.containerCount = [currentContent intValue];
149
        currentAccount.containerCount = [currentContent integerValue];
150 150
    } else if ([elementName isEqualToString:@"last_modified"]) {
151 151
        currentAccount.lastModified = [[self dateFormatterWithFormatId:0] dateFromString:
152 152
                                       [currentContent stringByReplacingOccurrencesOfString:@":" 
......
154 154
                                                                                    options:NSBackwardsSearch 
155 155
                                                                                      range:NSMakeRange(([currentContent length] - 3), 1)]];
156 156
	} else if ([elementName isEqualToString:@"bytes"]) {
157
        currentAccount.bytesUsed = [currentContent intValue];
157
        currentAccount.bytesUsed = [currentContent integerValue];
158 158
	} else if ([elementName isEqualToString:@"account"]) {
159 159
		[sharingAccounts addObject:currentAccount];
160 160
        self.currentAccount = nil;

Also available in: Unified diff