EMMessageModel.h 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. };
  21. NS_ASSUME_NONNULL_BEGIN
  22. @interface EMMessageModel : NSObject
  23. @property (nonatomic, strong) NSString *readReceiptCount;
  24. @property (nonatomic, strong) EMMessage *emModel;
  25. @property (nonatomic) EMMessageDirection direction;
  26. @property (nonatomic) EMMessageType type;
  27. //@property (nonatomic) BOOL isReadReceipt;
  28. @property (nonatomic) BOOL isPlaying;
  29. - (instancetype)initWithEMMessage:(EMMessage *)aMsg;
  30. @end
  31. NS_ASSUME_NONNULL_END