WFCCConversation.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // WFCCConversation.h
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/8/16.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. 会话类型
  11. - Single_Type: 单聊
  12. - Group_Type: 群组
  13. - Chatroom_Type: 聊天室
  14. - Channel_Type: 频道
  15. - Things_Type: 物联网
  16. */
  17. typedef NS_ENUM(NSInteger, WFCCConversationType) {
  18. Single_Type,
  19. Group_Type,
  20. Chatroom_Type,
  21. Channel_Type,
  22. Things_Type,
  23. } ;
  24. /**
  25. 会话
  26. */
  27. @interface WFCCConversation : NSObject
  28. /**
  29. 构造方法
  30. @param type 会话类型
  31. @param target 目标会话ID
  32. @param line 默认传0
  33. @return 会话
  34. */
  35. +(instancetype)conversationWithType:(WFCCConversationType)type
  36. target:(NSString *)target
  37. line:(int)line;
  38. /**
  39. 会话类型
  40. */
  41. @property (nonatomic, assign)WFCCConversationType type;
  42. /**
  43. 目标会话ID,单聊为对方用户ID,群聊为群ID
  44. */
  45. @property (nonatomic, strong)NSString *target;
  46. /**
  47. 默认为0
  48. */
  49. @property (nonatomic, assign)int line;
  50. @end