| | |
| | | _hdlRefreshToken = [[NSUserDefaults standardUserDefaults] objectForKey:EZhdlRefreshToken]; |
| | | |
| | | _deviceVerifyCodeBySerial = [NSMutableDictionary new]; |
| | | |
| | | self.WiFiConfigPrefix = @"EZVIZ"; |
| | | } |
| | | return self; |
| | | } |
| | |
| | | _GlobalRequestHttpsHost = GlobalRequestHttpsHost; |
| | | } |
| | | |
| | | - (void)sethdlPlatform:(int )hdlPlatform |
| | | - (void)sethdlPlatform:(int)hdlPlatform |
| | | { |
| | | _hdlPlatform = hdlPlatform; |
| | | } |
| | |
| | | - (void)clearSession |
| | | { |
| | | _accessToken = nil; |
| | | _hdlRefreshToken = nil; |
| | | _hdlAccessToken = nil; |
| | | _hdlRefreshToken = nil; |
| | | [[NSUserDefaults standardUserDefaults] removeObjectForKey:EZOpenSDKAccessToken]; |
| | | [[NSUserDefaults standardUserDefaults] synchronize]; |