HomeDetailCommentCell.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // HomeDetailCommentCell.h
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/9/27.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "TDTableViewCell.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^TouchBlock)(void);
  11. @class CommentModel;
  12. @class CommentSubModel;
  13. @protocol HomeDetailCommentCellDelegate <NSObject>
  14. /// 点赞评论列表并且返回状态
  15. - (void)didClickZanComment:(CommentModel *)model withStatus:(BOOL)status;
  16. /// 点击评论赞列表
  17. - (void)didClickZanComment:(CommentModel *)model;
  18. /// 点击回复-->楼主评论的
  19. - (void)didClickRepayComment:(CommentModel *)model;
  20. /// 点击回复----> 非楼主评论的
  21. - (void)didClickRepayCommentComment:(CommentSubModel *)model;
  22. - (void)didClickIconLookup:(CommentModel *)model;
  23. @end
  24. @interface HomeDetailCommentCell : TDTableViewCell
  25. @property (nonatomic, strong) TouchBlock touchAction;
  26. @property (nonatomic, strong) TouchBlock touchZan;
  27. @property (nonatomic, weak) id<HomeDetailCommentCellDelegate >delegate;
  28. - (void)loadCommentData:(CommentModel *)model;
  29. @end
  30. NS_ASSUME_NONNULL_END