WFCCPCOnlineInfo.h 974 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // WFCCPCOnlineInfo.h
  3. // WFChatClient
  4. //
  5. // Created by Tom Lee on 2020/4/6.
  6. // Copyright © 2020 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "WFCCJsonSerializer.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. PC在线类型
  13. - PC_Online: PC客户端在线
  14. - Web_Online: Web客户端在线
  15. - WX_Online: WX小程序客户端在线
  16. - Pad_Online: Pad客户端在线
  17. */
  18. typedef NS_ENUM(NSInteger, WFCCPCOnlineType) {
  19. PC_Online,
  20. Web_Online,
  21. WX_Online,
  22. Pad_Online
  23. };
  24. @interface WFCCPCOnlineInfo : WFCCJsonSerializer
  25. + (instancetype)infoFromStr:(NSString *)strInfo withType:(WFCCPCOnlineType)type;
  26. @property(nonatomic, assign)WFCCPCOnlineType type;
  27. @property(nonatomic, assign)BOOL isOnline;
  28. @property(nonatomic, assign)int/*WFCCPlatformType*/ platform;
  29. @property(nonatomic, strong)NSString *clientId;
  30. @property(nonatomic, strong)NSString *clientName;
  31. @property(nonatomic, assign)long long timestamp;
  32. @end
  33. NS_ASSUME_NONNULL_END