ChatMsgDetailChatModel.h 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // ChatMsgDetailChatModel.h
  3. // smartRhino
  4. //
  5. // Created by armin on 2019/11/7.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef enum ChatMsgType {
  11. ChatMsgType_sys_time = 1, // 时间类型消息
  12. ChatMsgType_join_qun = 2, // 多少人加入群聊消息
  13. ChatMsgType_user_sendmsg = 3 // 用户正常聊天消息
  14. }ChatMsgType;
  15. typedef enum ChatMsgFrom {
  16. ChatMsgFrom_left = 1, // 左边的人发消息
  17. ChatMsgFrom_right = 2, // 右边的人发消息
  18. }ChatMsgFrom;
  19. @interface ChatMsgDetailChatModel : NSObject
  20. @property (strong,nonatomic) NSString *chatMsgContent;
  21. @property (assign,nonatomic) ChatMsgType chatMsgType;
  22. @property (assign,nonatomic) ChatMsgFrom chatMsgFrom;
  23. //cell的高,计算cell
  24. @property (assign,nonatomic) CGFloat cellH;
  25. //计算文本的宽
  26. @property (assign,nonatomic) CGFloat cellByMsgContentW;
  27. @end
  28. NS_ASSUME_NONNULL_END