Files
peko-ios/YuMi/Modules/YMRoom/View/SendGiftView/View/XPGiftInfoView.h
2024-08-06 10:38:50 +08:00

70 lines
2.0 KiB
Objective-C

//
// YMGiftMiddleView.h
// YUMI
//
// Created by YUMI on 2021/11/9.
//
#import <UIKit/UIKit.h>
#import "XPSendGiftView.h"
#import <JXCategoryView/JXCategoryListContainerView.h>
///Model
#import "RoomInfoModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, GiftSegmentType) {
GiftSegmentType_Normal = 0, ///普通的礼物
GiftSegmentType_Lucky,///幸运礼物
GiftSegmentType_WeekStar, ///周星礼物
GiftSegmentType_Noble,///VIP礼物
GiftSegmentType_Anchor,///个播
GiftSegmentType_Pack,///背包礼物
GiftSegmentType_Graffiti,///涂鸦礼物
GiftSegmentType_Punish,///惩罚礼物
GiftSegmentType_SuperLucky,///超级幸运礼物
GiftSegmentType_Country,///国家礼物
};
@class GiftInfoModel,XPGiftInfoView, GiftReceiveInfoModel;
@protocol XPGiftInfoViewDelegate <NSObject>
///点击了某个item
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickItem:(GiftInfoModel *)info type:(GiftSegmentType)type;
@end
@interface XPGiftInfoView : UIView<JXCategoryListContentViewDelegate>
///使用的地方
@property (nonatomic,assign) SendGiftType usingPlaceType;
///普通礼物/幸运礼物/VIP礼物
@property (nonatomic,strong) NSArray *normalOriginArray;
///背包礼物
@property (nonatomic,strong) NSArray *packOriginArray;
///送背包礼物更新数据源
- (void)updatePackSource:(GiftReceiveInfoModel *)giftReceiveInfo numberUser:(NSInteger)numberUser;
///代理
@property (nonatomic,weak) id<XPGiftInfoViewDelegate> delegate;
///最后一次选中的礼物
@property (nonatomic,strong,readonly) GiftInfoModel *lastSelectGift;
///当前用户VIP等级
@property (nonatomic, assign) NSInteger curUserNobleLevel;
///免费礼物送完删除了,不能出现在背包,防止数据更新时重新加进来
@property (nonatomic,assign) BOOL isDelFreeGift;
///免费礼物
@property (nonatomic,strong) XPFreeGiftModel *freeModel;
///当前展示的数据的类型
@property (nonatomic,assign) GiftSegmentType segmentType;
@end
NS_ASSUME_NONNULL_END