PersonCenterModel.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. //
  2. // PersonCenterModel.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/7/20.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "BGBaseModel.h"
  9. #import "PersonCenterUserModel.h"
  10. #import "PersonCenterListModel.h"
  11. #import "userPageModel.h"
  12. @class userPageModel,MPCHeadView;
  13. @interface PersonCenterModel : BGBaseModel<ExchangeCoinViewDelegate>
  14. @property(nonatomic,assign) int is_admin; //是否是管理员 0 表示是其他会员 1表示是本人
  15. @property(nonatomic,assign) int is_edit_weixin; //是否显示编辑微信 0 表示显示加我微信 1表示编辑微信 2表示隐藏
  16. @property(nonatomic,assign) int is_show_focus; //是否显示 关注按钮 0 表示隐藏 1表示显示
  17. @property(nonatomic,assign) int is_focus;
  18. //是否显示 关注按钮 0 表示隐藏 1表示显示
  19. @property(nonatomic,assign) int has_focus;
  20. @property(nonatomic,assign) int is_show_money; //是否显示总收入 和 今日收入
  21. @property(nonatomic,assign) int is_show_talk; //是否显示聊聊 按钮
  22. @property(nonatomic,assign) int is_show_ds; //是否显示打赏按钮
  23. @property(nonatomic,assign) int has_next; //是否还有下一页
  24. @property(nonatomic,assign) int page; //页数
  25. @property(nonatomic,assign) int is_reply_but; //是否可以评论动态
  26. @property(nonatomic,assign) int is_reply_comment_but; //是否可以回复评论
  27. @property(nonatomic,assign) int is_show_weibo_report; //是否显示举报动态
  28. @property(nonatomic,assign) int is_show_user_report; //是否显示举报用户
  29. @property(nonatomic,assign) int is_show_user_black; //是否显示拉黑用户
  30. @property(nonatomic,assign) int is_show_top; //是否显示置顶
  31. @property(nonatomic,assign) int is_show_deal_weibo; //是否显示删除动态
  32. @property(nonatomic,assign) int user_id; //观看的会员ID,未登陆则为0
  33. @property(nonatomic,strong) PersonCenterUserModel *user; //用户信息模型1
  34. @property(nonatomic,strong) PersonCenterListModel *info; //用户信息模型2
  35. @property (nonatomic,strong)GlobalVariables *BuguLive;
  36. @property (nonatomic,strong)userPageModel *userModel;
  37. /*
  38. 兑换游戏币
  39. */
  40. @property ( nonatomic,strong) ExchangeCoinView *exchangeView;
  41. @property ( nonatomic,strong) UIWindow *bgWindow;
  42. @property ( nonatomic,strong) UIView *exchangeBgView;
  43. @property ( nonatomic,strong) UIViewController *myVC;
  44. /*
  45. 公会相关
  46. */
  47. @property (nonatomic, strong) UIView *backgroundView; //大的背景遮罩
  48. @property (nonatomic, strong) UIView *backView; //小的背景遮罩
  49. @property (nonatomic, strong) UIView *bigView; //背景图
  50. @property (nonatomic, strong) UIButton *addFamilyBtn; //加入公会按钮
  51. @property (nonatomic, strong) UIButton *createBtn; //创建公会按钮
  52. @property (nonatomic, strong) UIButton *bigButton;
  53. /*
  54. 公会相关
  55. */
  56. @property (nonatomic, strong) UIView *backgroundViewTwo; //大的背景遮罩
  57. @property (nonatomic, strong) UIView *backViewTwo; //小的背景遮罩
  58. @property (nonatomic, strong) UIView *bigViewTwo; //背景图
  59. @property (nonatomic, strong) UIButton *addSocietyBtn; //加入公会按钮
  60. @property (nonatomic, strong) UIButton *createSocietyBtn; //创建公会按钮
  61. @property (nonatomic, strong) UIButton *bigBtn;
  62. //MPersonCenterVC 的UI处理
  63. - (void)creatUIWithModel:(userPageModel *)userModel andMArr:(NSMutableArray *)detailArray andMyView:(UIView *)myView;
  64. -(void)didSelectWithModel:(userPageModel *)userModel andSection:(int)section;
  65. //兑换游戏币
  66. - (void)createExchangeCoinViewWithVC:(UIViewController *)myVC;
  67. - (void)exchangeGaomeCoinsWithModel:(userPageModel *)userModel;
  68. //我的公会
  69. - (void)createFamilyViewWithVC:(UIViewController *)myVC andModel:(userPageModel *)userModel;
  70. - (void)goToFamilyDesVCWithModel:(userPageModel *)userModel;
  71. //我的公会
  72. - (void)createSocietyViewWithVC:(UIViewController *)myVC andModel:(userPageModel *)userModel;
  73. - (void)goToSocietyDesVCWithModel:(userPageModel *)userModel;
  74. - (void)clickCreateSocietyBtn;
  75. //IM消息数量的通知
  76. - (void)loadBadageDataWithView:(MPCHeadView *)headV;
  77. /**
  78. 返回tableView的高度
  79. @param myUserModel 模型
  80. @param myBuguLive 全局变量
  81. @param type 类型 1代表row或者section的高度 2代表row或者section头部的高度
  82. @return 高度
  83. */
  84. - (CGFloat)getMyHeightWithModel:(userPageModel *)myUserModel andBuguLive:(GlobalVariables *)myBuguLive andSection:(int)section andType:(int)type;
  85. @end