| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //
- // MOGiftListView.h
- // MiMoLive
- //
- // Created by SuperC on 2023/11/23.
- //
- typedef NS_ENUM(NSUInteger, MOGiftListViewType)
- {
- MOGiftListViewTypeVideo,
- MOGiftListViewTypeVoice
- };
- #import <UIKit/UIKit.h>
- #import "MOGiftDataModels.h"
- #define TagLiveGiftListView 789
- NS_ASSUME_NONNULL_BEGIN
- @interface MOGiftListView : UIView
- /** 目标用户Id */
- @property (nonatomic, copy) NSString *targetUserId;
- /** 选中的礼物数 */
- @property (nonatomic, assign) NSInteger selectGiftNum;
- /** 选中的礼物 */
- @property (nonatomic, strong) MOGiftlist *chooseGiftModel;
- @property (nonatomic, assign) MOGiftListViewType viewType;
- /** 礼物选中回调 */
- @property (nonatomic, copy) void (^sentGiftBlock)(MOGiftlist *giftModel, NSInteger num, NSInteger category, MOGiftInfo *giftInfo);
- @property (nonatomic, copy) void (^levelBtnBlock)(void);
- @property (nonatomic, copy) void (^vipBtnBlock)(void);
- @property (nonatomic, copy) void (^topUpBtnBlock)(void);
- @property (nonatomic, copy) void (^dismissBlock)(void);
- @property (nonatomic, copy) void (^showUpBlock)();
- @property (nonatomic, assign) BOOL isSingleLinkMic;//是否单人连麦
- @property (nonatomic, assign) BOOL multiple;//是否多人直播间
- @property (nonatomic, strong) MOUserProfile *anchorUser;//主播
- @property (nonatomic, strong) NSArray *linkMics;//连麦人员
- @property (nonatomic, strong) NSArray *selectUserArr;
- @property (nonatomic, assign, readonly) CGFloat totalHeight;
- @property (nonatomic, copy) void (^stripeClickBlock)(MOStripe *stripe);
- @property (nonatomic, assign) double giftRedCount;//背包礼物 红点 ,临期礼物数量
- @property (nonatomic, assign) double propRedCount;//背包道具。红点 新获得
- @property (nonatomic, assign) double propNearExpiryPropCount;//道具过期数量
- @property (nonatomic, copy) void (^redChangeBlock)(NSInteger giftRedCount,NSInteger propRedCount,NSInteger propNearExpiryPropCount);//红点变化通知
- /** 头饰变化 */
- @property (nonatomic, copy) void (^headDressChangeBlock)(MOStoreInfo *stroeInfo);
- /** 麦位装饰变化 */
- @property (nonatomic, copy) void (^linkMicPropChangeBlock)(MOStoreInfo *stroeInfo);
- /** 打开商店 */
- @property (nonatomic, copy) void(^toShopBlock)(void);
- - (instancetype)initWith:(MOGiftListViewModel *)listViewModel;
- - (void)showGiftListView;
- - (void)dismissGiftListView;
- /// 1秒触发一次
- - (void)oneSecondPassed;
- @end
- NS_ASSUME_NONNULL_END
|