Files
yinmeng-ios/xplan-ios/Main/ModuleKit/SendGiftView/Model/GiftReceiveInfoModel.h
2021-11-19 14:13:08 +08:00

115 lines
3.3 KiB
Objective-C

//
// GiftReceiveInfoModel.h
// xplan-ios
//
// Created by 冯硕 on 2021/11/16.
//
/*
avatar = "http://img.uat.lecheng163.com/FoNOJJrSIf9WpJ8jHC_7OGxP841o?imageslim";
currentTime = 1637047533593;
gift = {
consumeType = 1;
giftId = 1423;
giftName = "\U795e\U79d8\U7cbd\U5b50";
giftType = 2;
giftUrl = "http://image.uat.zhongjialx.com/FmDCm483cDGPfM1cy-KW2558HUHx?imageslim";
goldPrice = 33;
hasEffect = 0;
hasLatest = 0;
hasTimeLimit = 0;
hasVggPic = 0;
isNobleGift = 0;
isSendMsg = 0;
isSkipRoom = 0;
isWholeServer = 0;
nobleId = 0;
nobleName = "";
roomExclude = 0;
seqNo = 1;
vggUrl = "http://image.uat.zhongjialx.com/FmDCm483cDGPfM1cy-KW2558HUHx?imageslim";
};
giftId = 1423;
giftNum = 1;
nick = "\U636e\U5065\U5065\U5eb7\U5eb7****";
targetUsers = (
{
avatar = "http://img.uat.lecheng163.com/FnEA7WfDtE2gMLyEvGLkY0Sa9cRk?imageslim";
nick = "IU\U7684\U79d8\U5bc6\U7537\U53cb";
uid = 940317;
}
);
uid = 940318;*/
#import <Foundation/Foundation.h>
#import "GiftInfoModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface GiftReceiveUserInfoModel : NSObject
///收礼物的人
@property(nonatomic, strong)NSString *nick;
///收礼物的人的头像
@property(nonatomic, strong)NSString *avatar;
///用户uid
@property(nonatomic, assign) NSInteger uid;
@end
@interface GiftLuckyUserInfo : NSObject
@property(nonatomic, copy) NSString *nick;
//基础信息
@property(nonatomic, assign) NSInteger uid;
@end
@interface GiftListsInfo : NSObject
@property (nonatomic, assign) NSInteger giftNum;
@property (nonatomic, assign) NSInteger prizeLevel;
@property (nonatomic, assign) NSInteger giftId;
@end
// 要多次发送消息 福袋相关的modle单独处理
@interface GiftLuckyBagGiftsInfo : NSObject
@property (nonatomic, strong) NSArray <GiftListsInfo *> *giftList;
@property (nonatomic, strong) GiftLuckyUserInfo *user;
@end
@interface GiftReceiveInfoModel : NSObject
@property (copy, nonatomic) NSString *targetAvatar;
@property (copy, nonatomic) NSString *targetNick;
@property (nonatomic, strong) NSArray *targetUids;
///礼物信息
@property (nonatomic,strong) GiftInfoModel *gift;
///礼物信息
@property (nonatomic,strong) GiftInfoModel *giftInfo;
///送礼物的人uid
@property(nonatomic, assign)NSString * uid;
///礼物的id
@property (nonatomic,copy) NSString *giftId;
///送礼物的人
@property(nonatomic, strong)NSString *nick;
///送礼物的人的头像
@property(nonatomic, strong)NSString *avatar;
///送礼物的个数
@property (assign, nonatomic) NSInteger giftNum;
/** 礼物名字 */
@property (nonatomic, strong)NSString *giftName;
/** 非全麦 多人送礼时 */
@property (nonatomic, strong) NSArray<GiftReceiveUserInfoModel *> *targetUsers;
/** 福袋礼物需要展示的vg动画 */
@property (nonatomic, strong) NSArray<GiftInfoModel *> *displayGift;
///福袋随机获取的礼物
@property (nonatomic, strong) NSArray <GiftLuckyBagGiftsInfo *> *luckyBagGifts;
//多人接收到的具体福袋礼物 是对luckyBagGifts的分离 要多次发送消息使用
@property (nonatomic, strong) GiftLuckyBagGiftsInfo* luckyGiftList;
///礼物来源
@property (nonatomic,assign) GiftSourceType sourceType;
///房间送礼物的类型
@property (nonatomic,assign) RoomSendGiftType roomSendGiftType;
///是否是背包礼物
@property (nonatomic,assign) BOOL isLuckyBagGift;
@end
NS_ASSUME_NONNULL_END