送礼物的接口的接入

This commit is contained in:
fengshuo
2021-11-16 16:31:24 +08:00
parent 5f05d5d750
commit b4c50569dd
22 changed files with 639 additions and 118 deletions

View File

@@ -0,0 +1,76 @@
//
// 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;
@end
@interface GiftReceiveInfoModel : NSObject
@property (nonatomic, strong) NSArray *targetUids;
///礼物信息
@property (nonatomic,strong) GiftInfoModel *gift;
///送礼物的人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) NSArray<GiftReceiveUserInfoModel *> *targetUsers;
///礼物来源
@property (nonatomic,assign) GiftSourceType sourceType;
@end
NS_ASSUME_NONNULL_END