ICRUserUtil.h 1.24 KB
Newer Older
mei's avatar
mei committed
1 2
//
//  ICRUserUtil.h
mei's avatar
mei committed
3
//  XFFruit
mei's avatar
mei committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//
//  Created by Xummer on 3/29/15.
//  Copyright (c) 2015 Xummer. All rights reserved.
//

#import "IBTObject.h"

@interface ICRUserUtil : IBTObject <NSCoding, NSCopying>

// Login Data
@property (copy, nonatomic) NSString *userName;
@property (copy, nonatomic) NSString *password;
@property (copy, nonatomic) NSString *registerCode;
@property (copy, nonatomic) NSString *token;
@property (copy, nonatomic) NSNumber *bAutoLogin;

// User Data
@property (copy, nonatomic) NSString *displayName;
mei's avatar
mei committed
22
@property (copy, nonatomic) NSString *userCode;
mei's avatar
mei committed
23 24
@property (copy, nonatomic) NSString *orgCode;
@property (copy, nonatomic) NSString *orgName;
mei's avatar
mei committed
25 26 27 28
@property (copy, nonatomic) NSString *userId;
@property (copy, nonatomic) NSString *orgId;
@property (copy, nonatomic) NSString *currentStoreID;
@property (copy, nonatomic) NSString *uniqueID;
mei's avatar
mei committed
29 30 31 32 33 34 35

+ (instancetype)sharedInstance;

- (BOOL)saveArchive;

- (BOOL)isLogin;

mei's avatar
mei committed
36 37 38 39
- (void)logout;

- (NSString *)mobileID;

mei's avatar
mei committed
40 41 42 43 44
- (void)storageUserName:(NSString *)userName
               password:(NSString *)password
           registerCode:(NSString *)registerCode
                  token:(NSString *)token;

mei's avatar
mei committed
45 46 47 48
- (void)storageCurrentStoreID:(NSString *)currentStoreID;

- (void)updatePassword:(NSString *)pwd;

mei's avatar
mei committed
49
@end