MHTopic.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. @property (nonatomic , assign) NSInteger Score;
  38. /** 富文本 */
  39. - (NSAttributedString *)attributedText;
  40. @end