// // EMMessageCell.h // ChatDemo-UI3.0 // // Created by XieYajie on 2019/1/25. // Copyright © 2019 XieYajie. All rights reserved. // #import #import "EMMessageModel.h" #import "EMMessageBubbleView.h" NS_ASSUME_NONNULL_BEGIN @protocol EMMessageCellDelegate; @interface EMMessageCell : UITableViewCell @property (nonatomic, weak) id delegate; @property (nonatomic, strong, readonly) EMMessageBubbleView *bubbleView; @property (nonatomic) EMMessageDirection direction; @property (nonatomic, strong) EMMessageModel *model; @property (nonatomic, copy) NSString *IconUrl; + (NSString *)cellIdentifierWithDirection:(EMMessageDirection)aDirection type:(EMMessageType)aType; - (instancetype)initWithDirection:(EMMessageDirection)aDirection type:(EMMessageType)aType; @end @protocol EMMessageCellDelegate @optional - (void)messageCellDidSelected:(EMMessageCell *)aCell; - (void)messageCellDidLongPress:(EMMessageCell *)aCell; - (void)messageCellDidResend:(EMMessageModel *)aModel; - (void)messageReadReceiptDetil:(EMMessageCell *)aCell; - (void)messageClickUserIcon:(EMMessageCell *)aCell; @end NS_ASSUME_NONNULL_END