| 类名 | 类描述 |
|---|---|
| VHallGiftObject | 礼物类 |
| VHWebinarBaseInfo | 活动基础信息 |
| 属性 | 属性描述 |
|---|---|
| delegate | 代理 |
| 方法 | 方法描述 |
|---|---|
| webinarUsingGiftListWithRoomId | 观看端_获取活动使用的礼物列表 |
| sendGiftWithRoomId | 观看端_发送礼物给主持人 |
| permissionsCheckWithWebinarId | 获取礼物配置开关 |
| 方法 | 方法描述 |
|---|---|
| vhGifttoModel | 收到礼物 |
+ (void)webinarUsingGiftListWithRoomId:(NSString *)roomId
complete:(void(^)(NSArray <VHallGiftListItem *> *giftList, NSError *error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| roomId | 是 | lss_xxxxxx | 房间 id |
| giftItem | 接口请求成功的返回参数 | 礼物列表 |
| 参数名称 | 备注 |
|---|---|
| giftId | 礼物 id |
| image_url | 礼物图片 |
| name | 礼物名称 |
| price | 礼物价格 |
| source_status | 来源类型:0 web 1 app |
| source_type | 0 系统礼物 1 自定义礼物 |
[VHallGiftObject webinarUsingGiftListWithRoomId:self.webinarInfo.webinarInfoData.interact.room_id complete:^(NSArray<VHallGiftListItem *> * _Nonnull giftList, NSError * _Nonnull error) {
@strongify(self);
if (giftList) {
}
if (error) {
}
}];+ (void)sendGiftWithRoomId:(NSString *)roomId
channel:(NSString *)channel
service_code:(NSString *)service_code
giftItem:(VHallGiftListItem *)giftItem
complete:(void(^)(VHallSendGiftModel *sendGiftModel, NSError *error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| roomId | 是 | lss_xxxxxx | 房间 id |
| channel | 是 | lss_xxxxxx | 支付渠道 "ALIPAY":支付宝相关的 "WEIXIN":微信相关的 |
| service_code | 是 | lss_xxxxxx | 支付方式 "QR_PAY":支付宝二维码支付 "H5_PAY":支付宝移动支付 "CASHIER":支付宝收银台支付 "QR_PAY":微信二维码支付 "QR_PAY":微信移动浏览器支付 "JSAPI":微信内置支付 |
| giftItem | 是 | giftItem | 礼物数据模型(礼物列表获取) |
| sendGiftModel | 接口请求成功的返回参数 | 发送成功返回的数据详情 |
| 参数名称 | 备注 |
|---|---|
| source_type | 0 系统礼物 1 自定义礼物 |
| gift_user_id | 赠送礼物者用户 ID |
| gift_user_avatar | 赠送礼物者用户头像 |
| gift_id | 礼物 ID |
| gift_user_name | 赠送礼物者用户名 |
| name | 礼物名称 |
| source_id | 房间 ID |
| gift_user_nickname | 赠送礼物者昵称 |
| gift_user_phone | 赠送礼物者用户手机号 |
| source_status |