YHWorkGroup.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // YHWorkGroup.h
  3. // github: https://github.com/samuelandkevin
  4. //
  5. // Created by samuelandkevin on 16/5/5.
  6. // Copyright © 2016年 HKP. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "YHUserInfo.h"
  10. #import "MGGroupUserInfo.h"
  11. ////动态类型
  12. //typedef NS_ENUM(int,DynType){
  13. // DynType_Original = 0, //原创
  14. // DynType_Forward //转发
  15. //};
  16. //
  17. ////可见性
  18. //typedef NS_ENUM(int,VisibleType){
  19. // Visible_AllPeople = 0,//所有人可见
  20. // Visible_OnlyFriend //仅好友可见
  21. //};
  22. @interface YHWorkGroup : NSObject
  23. @property (nonatomic, copy) NSString *dynamicId; //动态Id
  24. @property (nonatomic, strong) MGGroupUserInfo *userInfo; //发布动态用户
  25. //@property (nonatomic, assign) DynType type; //动态类型
  26. @property (nonatomic, copy) NSString *publishTime;//发布时间
  27. @property (nonatomic, copy) NSString *msgContent; //动态文本内容
  28. @property (nonatomic, assign) int commentCount; //评论数
  29. @property (nonatomic, assign) int likeCount; //点赞数
  30. @property (nonatomic, assign) BOOL isLike; //是否喜欢
  31. //@property (nonatomic, assign) VisibleType visible; //可见性
  32. @property (nonatomic, strong) NSArray <NSURL *>*originalPicUrls; //原图像Url
  33. @property (nonatomic, strong) NSArray <NSURL *>*thumbnailPicUrls;//缩略图Url
  34. @property (nonatomic, strong) YHWorkGroup *forwardModel;//上一条动态
  35. @property (nonatomic, assign) BOOL isRepost;//转发
  36. @property (nonatomic, assign) BOOL isOpening;
  37. @property (nonatomic, assign, readonly) BOOL shouldShowMoreButton;
  38. @property (nonatomic, assign) BOOL showDeleteButton;
  39. @property (nonatomic, assign) BOOL hiddenBotLine;//隐藏底部高度15的分隔线
  40. @end