MHTopic.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // MHTopic.h
  3. // MHDevelopExample
  4. //
  5. // Created by CoderMikeHe on 17/2/8.
  6. // Copyright © 2017年 CoderMikeHe. All rights reserved.
  7. // 话题模型(类似于一条说说、微博)
  8. #import <Foundation/Foundation.h>
  9. #import "MHComment.h"
  10. @interface MHTopic : BaseModel
  11. /** 视频的id */
  12. @property (nonatomic , copy) NSString *mediabase_id;
  13. /** 话题id */
  14. @property (nonatomic , assign) NSInteger Id;
  15. /** 点赞数 */
  16. @property (nonatomic , assign) long long LaudCount;
  17. /** 点赞数string //辅助属性// */
  18. @property (nonatomic , copy , readonly) NSString * thumbNumsString;
  19. /** 是否点赞 0 没有点赞 1 是点赞*/
  20. @property (nonatomic , assign , getter = isThumb) BOOL IsLaud;
  21. /** 创建时间 */
  22. @property (nonatomic , copy) NSString *CreatedTime;
  23. /** 头像 */
  24. @property (nonatomic , copy) NSString *AvatarUrl;
  25. /** 话题内容 */
  26. @property (nonatomic, copy) NSString *Content;
  27. /**  名字 */
  28. @property (nonatomic, copy) NSString * FloorCount;
  29. /**  名字 */
  30. @property (nonatomic, copy) NSString *Name;
  31. /** 所有评论 MHComment */
  32. @property (nonatomic , strong) NSMutableArray<MHComment *> *CommentReplyResults;
  33. /** 用户ID */
  34. @property (nonatomic , assign) NSInteger UserId;
  35. /** 评论总数 */
  36. @property (nonatomic , assign) NSInteger commentsCount;
  37. /** 富文本 */
  38. - (NSAttributedString *)attributedText;
  39. @end