64 lines
1.9 KiB
Objective-C
64 lines
1.9 KiB
Objective-C
//
|
|
// XPGiftMiddleView.h
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2021/11/9.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "XPSendGiftView.h"
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSInteger, GiftSegmentType) {
|
|
GiftSegmentType_Normal = 1, ///普通的礼物
|
|
GiftSegmentType_Lucky,///幸运礼物
|
|
GiftSegmentType_Noble,///贵族礼物
|
|
GiftSegmentType_WeekStar, ///周星礼物
|
|
GiftSegmentType_Pack,///背包礼物
|
|
GiftSegmentType_Graffiti,///涂鸦礼物
|
|
};
|
|
|
|
|
|
@class GiftInfoModel,XPGiftInfoView, GiftReceiveInfoModel;
|
|
|
|
@protocol XPGiftInfoViewDelegate <NSObject>
|
|
|
|
///点击了 规则说明
|
|
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickPlayRule:(NSString *)ruleUrl;
|
|
|
|
///点击了切换不同礼物的tabbar
|
|
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickSegment:(GiftSegmentType)type;
|
|
|
|
///点击了某个item
|
|
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickItem:(GiftInfoModel *)info type:(GiftSegmentType)type;
|
|
|
|
///点击了贵族特权
|
|
- (void)xPGiftInfoViewDidClickNobleEntrance:(XPGiftInfoView *)view;
|
|
|
|
///点击了周星榜
|
|
- (void)xpGiftInfoViewDidClickWeekStarRank:(XPGiftInfoView *)view;
|
|
|
|
@end
|
|
|
|
@interface XPGiftInfoView : UIView
|
|
///使用的地方
|
|
@property (nonatomic,assign) SendGiftType usingplaceType;
|
|
///普通礼物/幸运礼物/贵族礼物
|
|
@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;
|
|
///当前用户贵族等级
|
|
@property (nonatomic, assign) NSInteger curUserNobleLevel;
|
|
|
|
@property (nonatomic, copy) NSString *defaultSelectGiftId;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|