IMALoginParam.h 745 B

1234567891011121314151617181920212223242526272829303132333435
  1. // IMALoginParam.h
  2. // TIMChat
  3. //
  4. // Created by AlexiChen on 16/2/26.
  5. // Copyright © 2016年 AlexiChen. All rights reserved.
  6. //
  7. #import <ImSDK/ImSDK.h>
  8. #import "IMAPlatformConfig.h"
  9. @interface TIMLoginParam (PlatformConfig)
  10. - (IMAPlatformConfig *)config;
  11. - (void)saveToLocal;
  12. @end
  13. @interface IMALoginParam : TIMLoginParam
  14. @property (nonatomic, assign) NSInteger tokenTime; // 时间戮
  15. @property (nonatomic, strong) IMAPlatformConfig *config; // 用户对应的配置
  16. @property (nonatomic, assign) NSInteger isAgree; // 是否需要显示相关协议
  17. + (instancetype)loadFromLocal;
  18. // 保存至本地
  19. - (void)saveToLocal;
  20. // 是否过期
  21. - (BOOL)isExpired;
  22. // 是否有效
  23. - (BOOL)isVailed;
  24. @end