![]() |
iOSKit 1.0
iOS Developer Convenience Toolkit
|
00001 // 00002 // Account.h 00003 // iOSKit 00004 // 00005 // Created by Matthew Casey on 03/08/2011. 00006 // Copyright 2011 __MyCompanyName__. All rights reserved. 00007 // 00008 00009 #import <Foundation/Foundation.h> 00014 @interface IOSKitAccount : NSObject <NSCoding> { 00015 NSString *_emailUsername; 00016 NSString *_password; 00017 NSString *_keyCode; 00018 } 00019 00027 -(id)initWithEmailUsername:(NSString *)aEmailUsername andPassword:(NSString *)aPassword andKeyCode:(NSString *)aKeyCode; 00033 -(NSString *)emailUserNameWithAuthToken:(NSString *)authToken; 00040 -(BOOL)isPassword:(NSString *)enteredPassword correctWithAuthToken:(NSString *)authToken; 00047 -(NSString *)passwordWithAuthToken:(NSString *)authToken andKeyCode:(NSString *)keyCode; 00054 -(BOOL)isKeyCode:(NSString *)enteredKeyCode correctWithAuthToken:(NSString *)authToken; 00061 -(void)resetPasswordWithAuthToken:(NSString *)authToken fromOldPassword:(NSString *)oldP toNewPassword:(NSString *)newP; 00068 -(void)resetKeyCodeWithAuthToken:(NSString *)authToken withPassword:(NSString *)password toNewKeyCode:(NSString *)newKC; 00074 +(void)deleteAccount:(IOSKitAccount *)acc withAuthToken:(NSString *)authToken; 00075 00076 @end