TCLoginParam.h 833 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // TCLoginParam.h
  3. // TCLVBIMDemo
  4. //
  5. // Created by dackli on 16/8/4.
  6. // Copyright © 2016年 tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * 用来管理用户的登录信息,如登录信息的缓存、过期判断等
  11. */
  12. @interface TCLoginParam : NSObject
  13. @property (nonatomic, copy) NSString* token;
  14. @property (nonatomic, copy) NSString* refreshToken;
  15. @property (nonatomic, assign) NSInteger tokenTime;
  16. @property (nonatomic, assign) NSInteger expires;
  17. @property (nonatomic, assign) BOOL isLastAppExt; // 暂未使用
  18. @property (nonatomic, copy) NSString* identifier;
  19. @property (nonatomic, copy) NSString* hashedPwd;
  20. + (instancetype)shareInstance;
  21. - (void)loadFromLocal;
  22. - (void)saveToLocal;
  23. - (void)clearLocal;
  24. - (BOOL)isExpired;
  25. - (BOOL)isValid;
  26. - (NSDate *)expireDate;
  27. @end