| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- //
- // JCHATMessageTableViewCell.h
- // JChat
- //
- // Created by HuminiOS on 15/7/13.
- // Copyright (c) 2015年 HXHG. All rights reserved.
- //重构聊天界面代码用
- #import <UIKit/UIKit.h>
- #import "JCHATMessageContentView.h"
- #import "JCHATAudioPlayerHelper.h"
- #import "JCHATChatModel.h"
- #import "JCHATMessageTextView.h"
- #import "ShareGoodView.h"
- #import "CommodityDetailModel.h"
- @protocol playVoiceDelegate <NSObject>
- @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 <NSObject>
- @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 <XHAudioPlayerHelperDelegate,
- playVoiceDelegate,JMSGMessageDelegate>
- //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 <playVoiceDelegate>)delegate
- indexPath:(NSIndexPath *)indexPath
- ;
- - (void)layoutAllView;
- - (void)reloadAvatarImage;
- @end
|