MOGiftListView.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // MOGiftListView.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2023/11/23.
  6. //
  7. typedef NS_ENUM(NSUInteger, MOGiftListViewType)
  8. {
  9. MOGiftListViewTypeVideo,
  10. MOGiftListViewTypeVoice
  11. };
  12. #import <UIKit/UIKit.h>
  13. #import "MOGiftDataModels.h"
  14. #define TagLiveGiftListView 789
  15. NS_ASSUME_NONNULL_BEGIN
  16. @interface MOGiftListView : UIView
  17. /** 目标用户Id */
  18. @property (nonatomic, copy) NSString *targetUserId;
  19. /** 选中的礼物数 */
  20. @property (nonatomic, assign) NSInteger selectGiftNum;
  21. /** 选中的礼物 */
  22. @property (nonatomic, strong) MOGiftlist *chooseGiftModel;
  23. @property (nonatomic, assign) MOGiftListViewType viewType;
  24. /** 礼物选中回调 */
  25. @property (nonatomic, copy) void (^sentGiftBlock)(MOGiftlist *giftModel, NSInteger num, NSInteger category, MOGiftInfo *giftInfo);
  26. @property (nonatomic, copy) void (^levelBtnBlock)(void);
  27. @property (nonatomic, copy) void (^vipBtnBlock)(void);
  28. @property (nonatomic, copy) void (^topUpBtnBlock)(void);
  29. @property (nonatomic, copy) void (^dismissBlock)(void);
  30. @property (nonatomic, copy) void (^showUpBlock)();
  31. @property (nonatomic, assign) BOOL isSingleLinkMic;//是否单人连麦
  32. @property (nonatomic, assign) BOOL multiple;//是否多人直播间
  33. @property (nonatomic, strong) MOUserProfile *anchorUser;//主播
  34. @property (nonatomic, strong) NSArray *linkMics;//连麦人员
  35. @property (nonatomic, strong) NSArray *selectUserArr;
  36. @property (nonatomic, assign, readonly) CGFloat totalHeight;
  37. @property (nonatomic, copy) void (^stripeClickBlock)(MOStripe *stripe);
  38. @property (nonatomic, assign) double giftRedCount;//背包礼物 红点 ,临期礼物数量
  39. @property (nonatomic, assign) double propRedCount;//背包道具。红点 新获得
  40. @property (nonatomic, assign) double propNearExpiryPropCount;//道具过期数量
  41. @property (nonatomic, copy) void (^redChangeBlock)(NSInteger giftRedCount,NSInteger propRedCount,NSInteger propNearExpiryPropCount);//红点变化通知
  42. /** 头饰变化 */
  43. @property (nonatomic, copy) void (^headDressChangeBlock)(MOStoreInfo *stroeInfo);
  44. /** 麦位装饰变化 */
  45. @property (nonatomic, copy) void (^linkMicPropChangeBlock)(MOStoreInfo *stroeInfo);
  46. /** 打开商店 */
  47. @property (nonatomic, copy) void(^toShopBlock)(void);
  48. - (instancetype)initWith:(MOGiftListViewModel *)listViewModel;
  49. - (void)showGiftListView;
  50. - (void)dismissGiftListView;
  51. /// 1秒触发一次
  52. - (void)oneSecondPassed;
  53. @end
  54. NS_ASSUME_NONNULL_END