-
Notifications
You must be signed in to change notification settings - Fork 3
/
AccountKeysResponse.m
38 lines (25 loc) · 943 Bytes
/
AccountKeysResponse.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// AccountKeysResponse.m
// HudsonMobile
//
// Created by simone on 5/28/11.
// Copyright 2011 LMIT ltd. All rights reserved.
//
#import "AccountKeysResponse.h"
@implementation AccountKeysResponse
@synthesize key, secret;
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *) namespaceURI qualifiedName:(NSString *)qName
attributes: (NSDictionary *)attributeDict{
if(currentReadCharacters!=nil){
[currentReadCharacters release];
currentReadCharacters = nil;
}
}
-(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
if([elementName caseInsensitiveCompare:@"key"]==NSOrderedSame){
[self setKey:currentReadCharacters];
}else if([elementName caseInsensitiveCompare:@"secret"]==NSOrderedSame){
[self setSecret:currentReadCharacters];
}
}
@end