ChatMsgListImModel.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // ChatMsgListImModel.h
  3. // smartRhino
  4. //
  5. // Created by armin on 2019/11/5.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface ChatMsgListImModel : NSObject
  11. typedef enum ChatMsgDetailChatType {
  12. ChatType_SingleChat = 1, // 单聊界面
  13. ChatType_GroupChat = 2, // 群聊界面
  14. }ChatType;
  15. typedef NS_ENUM(NSInteger, MessageType) {
  16. MessageTypeText = 1,
  17. MessageTypeImage,
  18. MessageTypeFile,
  19. MessageTypeVideo,
  20. MessageTypeVoice,
  21. MessageTypeCmd,
  22. MessageTypeExtGif,
  23. MessageTypeExtRecall,
  24. MessageTypeExtCall,
  25. };
  26. //聊天类型 1 文本 2 图片 3 文件 4 视频 5语音
  27. @property (copy,nonatomic) NSString *AvatarUrl;
  28. @property (copy,nonatomic) NSString *Name;
  29. @property (copy,nonatomic) NSString *FolderName;
  30. @property (copy,nonatomic) NSAttributedString *ChatText;
  31. @property (copy,nonatomic) NSString *ChatTime;
  32. @property (copy,nonatomic) NSString *LastModifiedDate;
  33. @property (assign,nonatomic) NSInteger redNum;
  34. @property (assign,nonatomic) NSInteger UserId;
  35. @property (assign,nonatomic) NSInteger ToUserId;
  36. @property (assign,nonatomic) NSInteger ImId;
  37. @property (assign,nonatomic) NSInteger Id;
  38. @property (assign,nonatomic) ChatType ChatType;
  39. @property (assign,nonatomic) MessageType MsgType;
  40. @property (assign,nonatomic) BOOL IsTop;
  41. @property (assign,nonatomic) BOOL isSelected;
  42. @property (assign,nonatomic) BOOL IsDisturb;
  43. @property (assign,nonatomic) NSInteger AttributeValue;
  44. @end
  45. NS_ASSUME_NONNULL_END