chatCellView.h 979 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // chatCellView.h
  3. // AIIM
  4. //
  5. // Created by gan on 2025/6/24.
  6. //
  7. #ifndef chatCellView_h
  8. #define chatCellView_h
  9. #endif /* chatCellView_h */
  10. #import <UIKit/UIKit.h>
  11. #import "ChatMessageModel.h"
  12. @interface chatCellView : UITableViewCell
  13. @property (nonatomic, weak) UIViewController *parentViewController;
  14. @property (nonatomic, assign) BOOL isHistory;
  15. @property (nonatomic, assign) BOOL batchState;
  16. @property (nonatomic,copy) void(^bubbleCellLongPressMenuBlock)(NSInteger index);
  17. @property (nonatomic,copy) void(^batchSelectedStateBlock)(BOOL isSelected);
  18. @property (nonatomic,copy) void(^avatarTapBlock)(ChatMessageModel * message);
  19. @property (nonatomic,copy) void(^resendMessageBlock)(ChatMessageModel * message);
  20. @property (nonatomic) CGFloat height;
  21. @property (nonatomic, strong) ChatMessageModel *messageModel;
  22. -(void)fileUploadProgressDidChanged:(NSInteger)persent localtime:(NSInteger)localtime;
  23. + (CGFloat)cellHeightForMessage:(ChatMessageModel *)message;
  24. @end