Files
yinmeng-ios/xplan-ios/Main/ModuleKit/SendGiftView/View/XPGiftInfoView.h

64 lines
1.9 KiB
C
Raw Normal View History

2021-11-10 18:42:27 +08:00
//
// XPGiftMiddleView.h
// xplan-ios
//
// Created by 冯硕 on 2021/11/9.
//
#import <UIKit/UIKit.h>
2022-04-21 20:06:43 +08:00
#import "XPSendGiftView.h"
2021-11-10 18:42:27 +08:00
NS_ASSUME_NONNULL_BEGIN
2021-11-12 19:30:53 +08:00
typedef NS_ENUM(NSInteger, GiftSegmentType) {
GiftSegmentType_Normal = 1, ///普通的礼物
GiftSegmentType_Lucky,///幸运礼物
2021-12-27 17:17:21 +08:00
GiftSegmentType_Noble,///贵族礼物
2022-05-07 17:58:15 +08:00
GiftSegmentType_WeekStar, ///周星礼物
2021-11-12 19:30:53 +08:00
GiftSegmentType_Pack,///背包礼物
2022-08-22 20:07:36 +08:00
GiftSegmentType_Graffiti,///涂鸦礼物
2021-11-12 19:30:53 +08:00
};
2021-11-15 18:59:44 +08:00
2021-11-16 16:31:24 +08:00
@class GiftInfoModel,XPGiftInfoView, GiftReceiveInfoModel;
2021-11-15 18:59:44 +08:00
@protocol XPGiftInfoViewDelegate <NSObject>
///点击了 规则说明
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickPlayRule:(NSString *)ruleUrl;
2021-11-16 16:31:24 +08:00
///点击了切换不同礼物的tabbar
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickSegment:(GiftSegmentType)type;
2022-08-22 20:07:36 +08:00
///点击了某个item
- (void)xPGiftInfoView:(XPGiftInfoView *)view didClickItem:(GiftInfoModel *)info type:(GiftSegmentType)type;
///点击了贵族特权
- (void)xPGiftInfoViewDidClickNobleEntrance:(XPGiftInfoView *)view;
2022-05-07 17:58:15 +08:00
///点击了周星榜
- (void)xpGiftInfoViewDidClickWeekStarRank:(XPGiftInfoView *)view;
2021-11-15 18:59:44 +08:00
@end
2021-11-10 18:42:27 +08:00
@interface XPGiftInfoView : UIView
2022-04-21 20:06:43 +08:00
///使用的地方
@property (nonatomic,assign) SendGiftType usingplaceType;
2021-12-27 17:17:21 +08:00
///普通礼物/幸运礼物/贵族礼物
2021-11-12 19:30:53 +08:00
@property (nonatomic,strong) NSArray *normalOriginArray;
///背包礼物
2021-11-12 19:30:53 +08:00
@property (nonatomic,strong) NSArray *packOriginArray;
2021-11-16 16:31:24 +08:00
///送背包礼物更新数据源
- (void)updatePackSource:(GiftReceiveInfoModel *)giftReceiveInfo numberUser:(NSInteger)numberUser;
2021-11-15 18:59:44 +08:00
///代理
@property (nonatomic,weak) id<XPGiftInfoViewDelegate> delegate;
2021-11-16 16:31:24 +08:00
///最后一次选中的礼物
@property (nonatomic,strong,readonly) GiftInfoModel *lastSelectGift;
///当前用户贵族等级
@property (nonatomic, assign) NSInteger curUserNobleLevel;
2022-08-04 18:22:31 +08:00
@property (nonatomic, copy) NSString *defaultSelectGiftId;
2021-11-10 18:42:27 +08:00
@end
NS_ASSUME_NONNULL_END