| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // RASingleton.h
- // Apex And Drivers
- //
- // Created by Jack on 2018/6/6.
- // Copyright © 2018年 USAI. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @class CLLocation;
- @interface RASingleton : NSObject
- + (instancetype)sharedInstance;
- @property (nonatomic,copy,readonly) NSString *user;
- @property (nonatomic,copy,readonly) NSString *password;
- @property (nonatomic,strong) CLLocation *currentLocation;
- @property (nonatomic,copy,readonly) NSString *secretKey;
- @property (nonatomic,copy,readonly) NSString *encryptUser;
- @property (nonatomic,copy,readonly) NSString *encryptPassword;
- @property (nonatomic,copy) NSString *notificationToken;
- @property (nonatomic,assign) BOOL requiredLocation;
- - (void)saveUserInfo;
- - (NSString *)savedUser;
- - (NSString *)savedPassword;
- - (void)loginUser:(NSString *)user password:(NSString *)password;
- - (BOOL)autoLogin;
- - (void)logout;
- - (void)loadSavedReuqiredLocation;
- - (NSString *)encryptString:(NSString *)str;
- - (NSString *)decryptString:(NSString *)str;
- @end
|