心愿单直播间轮播入口(没有设置就隐藏)

This commit is contained in:
18401019693 2023-04-01 15:51:52 +08:00
parent 849677e50e
commit 95c39cca9d
2 changed files with 17 additions and 2 deletions

View File

@ -28,6 +28,17 @@ public class WishModel extends BaseModel {
private int giftType; private int giftType;
@SerializedName("price") @SerializedName("price")
private int price; private int price;
@SerializedName("isShow")
private int isShow = -1;
public int getIsShow() {
return isShow;
}
public WishModel setIsShow(int isShow) {
this.isShow = isShow;
return this;
}
public String getId() { public String getId() {
return id; return id;
@ -146,6 +157,7 @@ public class WishModel extends BaseModel {
} }
return progress; return progress;
} }
public int wishCurrent() { public int wishCurrent() {
int current = 0; int current = 0;
try { try {

View File

@ -480,7 +480,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
//初始化顶部banner //初始化顶部banner
mLiveRoomViewHolder.initTopBanner(); mLiveRoomViewHolder.initTopBanner();
//心愿单顶部bannner //心愿单顶部bannner
if (data.getWishListProgress().getIsShow()!=0){
mLiveRoomViewHolder.updateTopBanner(data.getWishListProgress()); mLiveRoomViewHolder.updateTopBanner(data.getWishListProgress());
}
isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention()); isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention());
if (isattention == 0) { if (isattention == 0) {
if (countDownTimer != null) { if (countDownTimer != null) {