134 lines
4.5 KiB
Objective-C
134 lines
4.5 KiB
Objective-C
//
|
|
// RoomGIftModel.h
|
|
// DingDangApp
|
|
//
|
|
// Created by apple on 2023/5/31.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SendGiftCountModel : NSObject
|
|
@property (nonatomic, copy) NSString * id;
|
|
|
|
@property (nonatomic, assign) BOOL isSelect;
|
|
@property (nonatomic, copy) NSString * title;
|
|
|
|
@property (nonatomic, assign) NSInteger num;
|
|
|
|
+(SendGiftCountModel *)initWithTitle:(NSString *)title num:(NSInteger)num;
|
|
|
|
@end
|
|
|
|
@interface RoomGiftAirPlaneModel : NSObject
|
|
|
|
@property (nonatomic, copy) NSString *user_name;
|
|
@property (nonatomic, copy) NSString *user_id;
|
|
@property (nonatomic, copy) NSString *avatar;
|
|
@property (nonatomic, copy) NSString *room_id;
|
|
@property (nonatomic, copy) NSString *room_name;
|
|
@property (nonatomic, copy) NSString *gift_box_img;
|
|
@property (nonatomic, copy) NSString *small_img;
|
|
|
|
@property (nonatomic, copy) NSString *giftName;
|
|
@property (nonatomic, assign) NSInteger giftNum;
|
|
@property (nonatomic, copy) NSString *other_name;
|
|
@property (nonatomic, copy) NSString *other_id;
|
|
@property (nonatomic, copy) NSString *other_avatar;
|
|
|
|
@property (nonatomic, copy) NSString *screen;
|
|
@property (nonatomic, copy) NSString *webUrl;
|
|
@property (nonatomic, assign) NSInteger witch_type;
|
|
//飘屏样式
|
|
@property (nonatomic, assign) NSInteger isBarrage;
|
|
@end
|
|
@interface RoomGiftModel : NSObject
|
|
///礼物id
|
|
@property (nonatomic, assign)NSInteger giftId;
|
|
///礼物名字
|
|
@property (nonatomic, strong)NSString *giftName;
|
|
///价格
|
|
@property (nonatomic, assign)double goldPrice;
|
|
///礼物url
|
|
@property (nonatomic, copy)NSString *giftUrl;
|
|
///福袋svagUrl
|
|
@property (nonatomic, copy)NSString *luckyGiftSvgaUrl;
|
|
///玩法说明Url
|
|
@property (nonatomic, copy)NSString *giftExplainUrl;
|
|
|
|
|
|
///是否有vgg特效
|
|
@property (assign, nonatomic) BOOL hasVggPic;
|
|
///动效url
|
|
@property (copy, nonatomic) NSString *vggUrl;
|
|
///是否最新
|
|
@property (assign, nonatomic) BOOL hasLatest;
|
|
///是否限时
|
|
@property (assign, nonatomic) BOOL hasTimeLimit;
|
|
///是否特效
|
|
@property (assign, nonatomic) BOOL hasEffect;
|
|
///是否是房间专属礼物
|
|
@property (assign, nonatomic) BOOL roomExclude;
|
|
///是否支持发广播
|
|
@property (nonatomic,assign) BOOL isSendMsg;
|
|
///礼物文件类型 0 其他, 1 mp4
|
|
|
|
///mp4类型特效url
|
|
@property (nonatomic, copy) NSString *viewUrl;
|
|
|
|
/**------------- 礼物背包 ----------------**/
|
|
///个数
|
|
@property (nonatomic, assign) NSInteger count;
|
|
@property (nonatomic, assign) NSInteger reciveCount;
|
|
|
|
//isSelected 用于本地修改
|
|
@property (nonatomic,assign) BOOL isSelected;//是否被选中
|
|
|
|
|
|
/*----------周星礼物--------*/
|
|
///上周周星礼物ID
|
|
@property (nonatomic, assign) NSInteger lastGiftId;
|
|
|
|
@property (nonatomic, copy) NSString * id;
|
|
|
|
@property (nonatomic, assign) BOOL isSelect;
|
|
@property (nonatomic, copy) NSString * gift_id;
|
|
@property (nonatomic, copy) NSString * title;
|
|
@property (nonatomic, copy) NSString * img;
|
|
@property (nonatomic, assign) NSInteger price;
|
|
@property (nonatomic, assign) NSInteger gift_num;
|
|
@property (nonatomic, assign) NSInteger type;
|
|
//自用 1商城礼物 2背包礼物 3幸运礼物 4特权礼物
|
|
@property (nonatomic, assign) NSInteger giftType;
|
|
@property (nonatomic, assign) float persent;
|
|
@property (nonatomic, copy) NSString * prompt;
|
|
@property (nonatomic, copy) NSString * max_gift_img;
|
|
@property (nonatomic, assign) NSInteger ext_int;
|
|
@property (nonatomic, copy) NSString * max_gift_title;
|
|
@property (nonatomic, copy) NSString * jump_url;
|
|
@property (nonatomic, copy) NSString * explain_img;
|
|
@property (nonatomic, copy) NSString * box_ground_img;
|
|
@property (nonatomic, copy) NSString * random_gift_name;
|
|
|
|
#pragma -
|
|
#pragma --- 礼物消息回执
|
|
@property (nonatomic, copy) NSString * charm;
|
|
@property (nonatomic, copy) NSString * screen_img;
|
|
@property (nonatomic, copy) NSString * gift_name;
|
|
@property (nonatomic, copy) NSString * nickname;
|
|
@property (nonatomic, assign) NSInteger nobility_id;
|
|
@property (nonatomic, copy) NSString * nobility_avtar;
|
|
|
|
@property (nonatomic, assign) NSInteger nobility_status;
|
|
|
|
@property (nonatomic, assign) NSInteger isBarrage;
|
|
@property (nonatomic, copy) NSString * giftNumString;
|
|
@property (nonatomic, assign) float giftNumWidth;
|
|
|
|
+ (RoomGiftModel *)initGiftModelWithName:(NSString *)title giftImg:(NSString *)giftImg giftNum:(NSInteger)giftNum type:(NSInteger)type price:(NSInteger)price gift_id:(NSInteger)gift_id;
|
|
@end
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|