Files
yinmeng-ios/xplan-ios/Main/ModuleKit/SendGiftView/View/XPSendGiftView.h
2022-08-04 18:22:31 +08:00

40 lines
1.0 KiB
Objective-C

//
// XPSendGiftView.h
// xplan-ios
//
// Created by 冯硕 on 2021/11/9.
//
#import "MvpViewController.h"
#import "RoomHostDelegate.h"
#import "XPGiftUserInfoModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, SendGiftType) {
SendGiftType_Room = 1, ///房间内送礼物
SendGiftType_User, ///送给某一个人
};
@interface XPSendGiftView : MvpViewController
///房间内才需要
@property (nonatomic,weak) id<RoomHostDelegate> delegate;
/// 送礼物的
/// @param type 送礼物的类型
/// @param uid 送礼物的人
- (instancetype)initWithType:(SendGiftType)type uid:(NSString * __nullable)uid;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)copy NS_UNAVAILABLE;
- (instancetype)mutableCopy NS_UNAVAILABLE;
///对外只需要一个 获取麦序的接口
///完全封闭的一个组件
- (void)configGiftUsers:(NSArray<XPGiftUserInfoModel *> *)users;
///选中的礼物id
@property (nonatomic, copy) NSString *selectGiftId;
@end
NS_ASSUME_NONNULL_END