QYSessionInfo.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // QYSessionInfo.h
  3. // YSFSDK
  4. //
  5. // Created by Netease on 16/12/2.
  6. // Copyright (c) 2017 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "QYMessageInfo.h"
  10. /**
  11. * 会话状态类型
  12. */
  13. typedef NS_ENUM(NSInteger, QYSessionStatus) {
  14. QYSessionStatusNone, //无
  15. QYSessionStatusWaiting, //排队中
  16. QYSessionStatusInSession //会话中
  17. };
  18. /**
  19. * 会话列表中的会话详情信息
  20. */
  21. @interface QYSessionInfo : NSObject
  22. /**
  23. * 会话最后一条消息文本
  24. */
  25. @property (nonatomic, copy) NSString *lastMessageText;
  26. /**
  27. * 消息类型
  28. */
  29. @property (nonatomic, assign) QYMessageType lastMessageType;
  30. /**
  31. * 会话未读数
  32. */
  33. @property (nonatomic, assign) NSInteger unreadCount;
  34. /**
  35. * 会话状态
  36. */
  37. @property (nonatomic, assign) QYSessionStatus status;
  38. /**
  39. * 会话最后一条消息的时间
  40. */
  41. @property (nonatomic, assign) NSTimeInterval lastMessageTimeStamp;
  42. /**
  43. * 是否存在垃圾词汇
  44. */
  45. @property (nonatomic, assign) BOOL hasTrashWords;
  46. @end