EMMessageCell.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // EMMessageCell.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/1/25.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "EMMessageModel.h"
  10. #import "EMMessageBubbleView.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @protocol EMMessageCellDelegate;
  13. @interface EMMessageCell : UITableViewCell
  14. @property (nonatomic, weak) id<EMMessageCellDelegate> delegate;
  15. @property (nonatomic, strong, readonly) EMMessageBubbleView *bubbleView;
  16. @property (nonatomic) EMMessageDirection direction;
  17. @property (nonatomic, strong) EMMessageModel *model;
  18. @property (nonatomic, copy) NSString *IconUrl;
  19. + (NSString *)cellIdentifierWithDirection:(EMMessageDirection)aDirection
  20. type:(EMMessageType)aType;
  21. - (instancetype)initWithDirection:(EMMessageDirection)aDirection
  22. type:(EMMessageType)aType;
  23. @end
  24. @protocol EMMessageCellDelegate <NSObject>
  25. @optional
  26. - (void)messageCellDidSelected:(EMMessageCell *)aCell;
  27. - (void)messageCellDidLongPress:(EMMessageCell *)aCell;
  28. - (void)messageCellDidResend:(EMMessageModel *)aModel;
  29. - (void)messageReadReceiptDetil:(EMMessageCell *)aCell;
  30. - (void)messageClickUserIcon:(EMMessageCell *)aCell;
  31. @end
  32. NS_ASSUME_NONNULL_END