EMMessageModel.h 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // EMMessageModel.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/1/18.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSInteger, EMMessageType) {
  10. EMMessageTypeText = 1,
  11. EMMessageTypeImage,
  12. EMMessageTypeVideo,
  13. EMMessageTypeLocation,
  14. EMMessageTypeVoice,
  15. EMMessageTypeFile,
  16. EMMessageTypeCmd,
  17. EMMessageTypeExtGif,
  18. EMMessageTypeExtRecall,
  19. EMMessageTypeExtCall,
  20. EMMessageTypeExtApp,
  21. };
  22. NS_ASSUME_NONNULL_BEGIN
  23. @interface EMMessageModel : NSObject
  24. @property (nonatomic, strong) NSString *readReceiptCount;
  25. @property (nonatomic, strong) EMMessage *emModel;
  26. @property (nonatomic) EMMessageDirection direction;
  27. @property (nonatomic) EMMessageType type;
  28. //@property (nonatomic) BOOL isReadReceipt;
  29. @property (nonatomic) BOOL isPlaying;
  30. - (instancetype)initWithEMMessage:(EMMessage *)aMsg;
  31. @end
  32. NS_ASSUME_NONNULL_END