YMHomePageListCellViewModel.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // YMHomePageListCellViewModel.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/12.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "MSYOUPAIViewModel.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^ChangeAccostStatusBlock)(void);
  11. @interface YMHomePageListCellViewModel : MSYOUPAIViewModel
  12. @property (nonatomic, copy) ChangeAccostStatusBlock changeAccostStatusBlock;
  13. /// 发送搭讪请求
  14. - (void)sendAccostRequest;
  15. - (void)updateWithPageIndex;
  16. /// 横滑PageVC索引
  17. @property (nonatomic, copy , readwrite) NSString *jxPageTitle;
  18. /// 横滑PageVC索引
  19. @property (nonatomic, assign, readwrite) NSInteger jxCategoryPageIndex;
  20. /// 用户Id
  21. @property (nonatomic, assign, readonly) NSInteger userId;
  22. /// 用户头像
  23. @property (nonatomic, copy, readonly) NSString * userAvatar;
  24. /// 用户在线状态颜色
  25. @property (nonatomic, strong, readonly) UIColor *userOnlineStatusColor;
  26. /// 用户在线状态文本
  27. @property (nonatomic, strong, readonly) NSString *userOnlineStatusText;
  28. /// 在线状态文本颜色
  29. @property (nonatomic, strong, readonly) UIColor *userOnlineTextColor;
  30. /// 用户昵称
  31. @property (nonatomic, copy, readonly) NSString * userNickname;
  32. /// 用户昵称
  33. @property (nonatomic, copy, readonly) UIColor * userNicknameColor;
  34. /// 用户是否在线
  35. @property (nonatomic, assign, readonly) NSInteger is_online;
  36. /// 用户是否在线颜色
  37. @property (nonatomic, copy, readonly) UIColor * is_onlineColor;
  38. /// 用户费用金额
  39. @property (nonatomic, copy, readonly) NSString * userVideoFeesAmount;
  40. /// 是否隐藏用户收费金额
  41. @property (nonatomic, assign, readonly) BOOL isHideUserFeesAmount;
  42. /// 是否可私聊
  43. @property (nonatomic, assign, readonly) BOOL isCanPrivateChat;
  44. /// 心动或搭讪按钮标题 “心动”字样是给女用户的 “搭讪”字样是给男用户
  45. @property (nonatomic, strong, readonly) NSString *heartbeatOrAccostButtonTitle;
  46. /// 心动或搭讪按钮图片
  47. @property (nonatomic, strong, readonly) NSString *heartbeatOrAccostButtonImage;
  48. /// 心动或搭讪按钮标题颜色
  49. @property (nonatomic, strong, readonly) UIColor *heartbeatOrAccostButtonTitleColor;
  50. /// 心动或搭讪按钮背景颜色
  51. @property (nonatomic, strong, readonly) UIColor *heartbeatOrAccostButtonBackgroundColor;
  52. @end
  53. NS_ASSUME_NONNULL_END