6.5.4礼物冠名
This commit is contained in:
119
common/src/main/java/com/yunbao/common/bean/GiftGuideModel.java
Normal file
119
common/src/main/java/com/yunbao/common/bean/GiftGuideModel.java
Normal file
@@ -0,0 +1,119 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class GiftGuideModel extends BaseModel {
|
||||
|
||||
@SerializedName("guide_name")
|
||||
private String guideName;
|
||||
@SerializedName("illuminate_count")
|
||||
private int illuminateCount;
|
||||
@SerializedName("already_font")
|
||||
private String alreadyFont;
|
||||
@SerializedName("without_font")
|
||||
private String withoutFont;
|
||||
@SerializedName("number")
|
||||
private String number;
|
||||
@SerializedName("illuminate_total")
|
||||
private int illuminateTotal;
|
||||
@SerializedName("week_number")
|
||||
private String weekNumber;
|
||||
@SerializedName("guide_name_img_path")
|
||||
private String guideNameImgPath;
|
||||
@SerializedName("guide_background_picture_path")
|
||||
private String guideBackgroundPicturePath;
|
||||
@SerializedName("gift_data")
|
||||
private List<GiftWallModel> giftData;
|
||||
|
||||
public String getAlreadyFont() {
|
||||
return alreadyFont;
|
||||
}
|
||||
|
||||
public GiftGuideModel setAlreadyFont(String alreadyFont) {
|
||||
this.alreadyFont = alreadyFont;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getWithoutFont() {
|
||||
return withoutFont;
|
||||
}
|
||||
|
||||
public GiftGuideModel setWithoutFont(String withoutFont) {
|
||||
this.withoutFont = withoutFont;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
public GiftGuideModel setNumber(String number) {
|
||||
this.number = number;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getIlluminateTotal() {
|
||||
return illuminateTotal;
|
||||
}
|
||||
|
||||
public GiftGuideModel setIlluminateTotal(int illuminateTotal) {
|
||||
this.illuminateTotal = illuminateTotal;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getWeekNumber() {
|
||||
return weekNumber;
|
||||
}
|
||||
|
||||
public GiftGuideModel setWeekNumber(String weekNumber) {
|
||||
this.weekNumber = weekNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getGuideNameImgPath() {
|
||||
return guideNameImgPath;
|
||||
}
|
||||
|
||||
public GiftGuideModel setGuideNameImgPath(String guideNameImgPath) {
|
||||
this.guideNameImgPath = guideNameImgPath;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getGuideBackgroundPicturePath() {
|
||||
return guideBackgroundPicturePath;
|
||||
}
|
||||
|
||||
public GiftGuideModel setGuideBackgroundPicturePath(String guideBackgroundPicturePath) {
|
||||
this.guideBackgroundPicturePath = guideBackgroundPicturePath;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getGuideName() {
|
||||
return guideName;
|
||||
}
|
||||
|
||||
public GiftGuideModel setGuideName(String guideName) {
|
||||
this.guideName = guideName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getIlluminateCount() {
|
||||
return illuminateCount;
|
||||
}
|
||||
|
||||
public GiftGuideModel setIlluminateCount(int illuminateCount) {
|
||||
this.illuminateCount = illuminateCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<GiftWallModel> getGiftData() {
|
||||
return giftData;
|
||||
}
|
||||
|
||||
public GiftGuideModel setGiftData(List<GiftWallModel> giftData) {
|
||||
this.giftData = giftData;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -70,6 +70,29 @@ public class GiftWallModel extends BaseModel {
|
||||
@SerializedName("naming_coin_max")
|
||||
private String namingCoinMax;
|
||||
|
||||
@SerializedName("illuminate_status")
|
||||
private int illuminateStatus;
|
||||
@SerializedName("font_color")
|
||||
private String fontColor;
|
||||
|
||||
public String getFontColor() {
|
||||
return fontColor;
|
||||
}
|
||||
|
||||
public GiftWallModel setFontColor(String fontColor) {
|
||||
this.fontColor = fontColor;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getIlluminateStatus() {
|
||||
return illuminateStatus;
|
||||
}
|
||||
|
||||
public GiftWallModel setIlluminateStatus(int illuminateStatus) {
|
||||
this.illuminateStatus = illuminateStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getNamingCoinMax() {
|
||||
return namingCoinMax;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.yunbao.common.event;
|
||||
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
|
||||
public class CodexEvent extends BaseModel {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.yunbao.common.event;
|
||||
|
||||
public class LiveGiftDialogEvent {
|
||||
}
|
||||
@@ -13,6 +13,7 @@ import com.yunbao.common.bean.DiscountsModel;
|
||||
import com.yunbao.common.bean.EnterRoomNewModel;
|
||||
import com.yunbao.common.bean.FaceBookUpModel;
|
||||
import com.yunbao.common.bean.GiftAlreadyWallModel;
|
||||
import com.yunbao.common.bean.GiftGuideModel;
|
||||
import com.yunbao.common.bean.GiftWallGiftDetail;
|
||||
import com.yunbao.common.bean.GiftWallModel;
|
||||
import com.yunbao.common.bean.HourRank;
|
||||
@@ -873,5 +874,19 @@ public interface PDLiveApi {
|
||||
*/
|
||||
@GET("/api/public/?service=Gift.lastMonthGiftNaming")
|
||||
Observable<ResponseModel<List<GiftWallModel>>> lastMonthGiftNaming();
|
||||
/**
|
||||
* 礼物墙上月冠名
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GET("/api/public/?service=Gift.getGiftGuide")
|
||||
Observable<ResponseModel<List<GiftGuideModel>>> getGiftGuide(
|
||||
@Query("liveuid") String liveUid
|
||||
);
|
||||
|
||||
@GET("/api/public/?service=Gift.getGiftGuideHistory")
|
||||
Observable<ResponseModel<List<GiftGuideModel>>> getGiftGuideHistory(
|
||||
@Query("liveuid") String liveUid
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.yunbao.common.bean.CustomSidebarInfoModel;
|
||||
import com.yunbao.common.bean.DiscountsModel;
|
||||
import com.yunbao.common.bean.EnterRoomNewModel;
|
||||
import com.yunbao.common.bean.GiftAlreadyWallModel;
|
||||
import com.yunbao.common.bean.GiftGuideModel;
|
||||
import com.yunbao.common.bean.GiftWallGiftDetail;
|
||||
import com.yunbao.common.bean.GiftWallModel;
|
||||
import com.yunbao.common.bean.HttpCallbackModel;
|
||||
@@ -1909,6 +1910,50 @@ public class LiveNetManager {
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void getGiftGuide(String liveUid, HttpCallback<List<GiftGuideModel>> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getGiftGuide(liveUid)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<List<GiftGuideModel>>>() {
|
||||
@Override
|
||||
public void accept(ResponseModel<List<GiftGuideModel>> listResponseModel) throws Exception {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||
}
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
public void accept(Throwable throwable) throws Exception {
|
||||
if (callback != null) {
|
||||
callback.onError(mContext.getString(R.string.net_error));
|
||||
}
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void getGiftGuideHistory(String liveUid, HttpCallback<List<GiftGuideModel>> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getGiftGuideHistory(liveUid)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<List<GiftGuideModel>>>() {
|
||||
@Override
|
||||
public void accept(ResponseModel<List<GiftGuideModel>> listResponseModel) throws Exception {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||
}
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
public void accept(Throwable throwable) throws Exception {
|
||||
if (callback != null) {
|
||||
callback.onError(mContext.getString(R.string.net_error));
|
||||
}
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
/**
|
||||
* 直播间取消网络请求
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user