// // JCHATMessageTableViewCell.h // JChat // // Created by HuminiOS on 15/7/13. // Copyright (c) 2015年 HXHG. All rights reserved. //重构聊天界面代码用 #import #import "JCHATMessageContentView.h" #import "JCHATAudioPlayerHelper.h" #import "JCHATChatModel.h" #import "JCHATMessageTextView.h" #import "ShareGoodView.h" #import "CommodityDetailModel.h" @protocol playVoiceDelegate @optional - (void)successionalPlayVoice:(UITableViewCell *)cell indexPath:(NSIndexPath *)indexPath; - (void)getContinuePlay:(UITableViewCell *)cell indexPath:(NSIndexPath *)indexPath; - (void)selectHeadView:(JCHATChatModel *)model; - (void)setMessageIDWithMessage:(JMSGMessage *)message chatModel:(JCHATChatModel * __strong *)chatModel index:(NSInteger)index; @end @protocol PictureDelegate @optional - (void)tapPicture :(NSIndexPath *)index tapView :(UIImageView *)tapView tableViewCell:(UITableViewCell *)tableViewCell; - (void)selectHeadView:(JCHATChatModel *)model; @end typedef void (^JCHATMessageTableViewCellRefreshMediaMessage)(JCHATChatModel *model,BOOL isShouldRefresh); @interface JCHATMessageTableViewCell : UITableViewCell //rk20201030 @property(nonatomic,strong)JCHATMessageTextView *passRKTextView; @property(strong,nonatomic)UIImageView *headView; //头像 @property(strong,nonatomic)JCHATMessageContentView *messageContent; //消息 @property(strong,nonatomic)JCHATChatModel *model; @property(weak, nonatomic)JMSGConversation *conversation; @property(weak, nonatomic) id delegate; @property (strong, nonatomic) UIImageView *sendFailView; @property (strong, nonatomic) UIActivityIndicatorView *circleView; //image @property (strong, nonatomic) UILabel *percentLabel; //商品 @property (strong, nonatomic)ShareGoodView *goodsView; @property (strong, nonatomic)CommodityDetailModel *commodityModel; //voice @property(assign, nonatomic)BOOL continuePlayer; @property(assign, nonatomic)BOOL isPlaying; @property(assign, nonatomic)NSInteger index; //voice 语音图片的当前显示 @property(strong, nonatomic)NSIndexPath *indexPath; @property(strong, nonatomic)UIView *readView; @property(strong, nonatomic)UILabel *voiceTimeLabel; //语音消息 @property(strong, nonatomic) JCHATMessageTableViewCellRefreshMediaMessage messageTableViewCellRefreshMediaMessage; - (void)playVoice; - (void)setCellData:(JCHATChatModel *)model delegate:(id )delegate indexPath:(NSIndexPath *)indexPath ; - (void)layoutAllView; - (void)reloadAvatarImage; @end