修复#93测试问题
This commit is contained in:
parent
a78d5b4aba
commit
7ce0bb3a7c
@ -7,6 +7,8 @@ import java.util.List;
|
|||||||
public class FansGroupGiftPackInfo extends BaseModel {
|
public class FansGroupGiftPackInfo extends BaseModel {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private int id;
|
private int id;
|
||||||
|
@SerializedName("pack_name")
|
||||||
|
private String packName;
|
||||||
@SerializedName("description")
|
@SerializedName("description")
|
||||||
private String description;
|
private String description;
|
||||||
@SerializedName("coin")
|
@SerializedName("coin")
|
||||||
@ -17,6 +19,14 @@ public class FansGroupGiftPackInfo extends BaseModel {
|
|||||||
public FansGroupGiftPackInfo() {
|
public FansGroupGiftPackInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPackName() {
|
||||||
|
return packName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPackName(String packName) {
|
||||||
|
this.packName = packName;
|
||||||
|
}
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -51,8 +61,9 @@ public class FansGroupGiftPackInfo extends BaseModel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FansGroupGiftPack{" +
|
return "FansGroupGiftPackInfo{" +
|
||||||
"id=" + id +
|
"id=" + id +
|
||||||
|
", packName='" + packName + '\'' +
|
||||||
", description='" + description + '\'' +
|
", description='" + description + '\'' +
|
||||||
", coin='" + coin + '\'' +
|
", coin='" + coin + '\'' +
|
||||||
", data=" + data +
|
", data=" + data +
|
||||||
|
@ -22,6 +22,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
private TextView anchorName;
|
private TextView anchorName;
|
||||||
private TextView buy;
|
private TextView buy;
|
||||||
private TextView giftInfo;
|
private TextView giftInfo;
|
||||||
|
private TextView giftName;
|
||||||
private RecyclerView recyclerView;
|
private RecyclerView recyclerView;
|
||||||
private LiveFansGroupBuyAdapter adapter;
|
private LiveFansGroupBuyAdapter adapter;
|
||||||
private String id;
|
private String id;
|
||||||
@ -55,8 +56,8 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void buildDialog(XPopup.Builder builder) {
|
public void buildDialog(XPopup.Builder builder) {
|
||||||
builder.popupWidth(DpUtil.dp2px(370));
|
builder.popupWidth(DpUtil.dp2px(370));
|
||||||
builder.maxWidth(DpUtil.dp2px(370));
|
builder.maxWidth(DpUtil.dp2px(370));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -69,9 +70,10 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
super.onCreate();
|
super.onCreate();
|
||||||
anchorName = findViewById(R.id.anchorName);
|
anchorName = findViewById(R.id.anchorName);
|
||||||
giftInfo = findViewById(R.id.giftInfo);
|
giftInfo = findViewById(R.id.giftInfo);
|
||||||
|
giftName = findViewById(R.id.giftName);
|
||||||
buy = findViewById(R.id.buy);
|
buy = findViewById(R.id.buy);
|
||||||
recyclerView = findViewById(R.id.giftList);
|
recyclerView = findViewById(R.id.giftList);
|
||||||
recyclerView.setLayoutManager(new LinearLayoutManager(mContext,LinearLayoutManager.HORIZONTAL,false){
|
recyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false) {
|
||||||
@Override
|
@Override
|
||||||
public boolean canScrollHorizontally() {
|
public boolean canScrollHorizontally() {
|
||||||
return false;
|
return false;
|
||||||
@ -82,7 +84,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
anchorName.setText(name);
|
anchorName.setText(name);
|
||||||
buy.setOnClickListener(v -> {
|
buy.setOnClickListener(v -> {
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
.buyFansExclusivePack(liveUid, id,mSteam, new HttpCallback<HttpCallbackModel>() {
|
.buyFansExclusivePack(liveUid, id, mSteam, new HttpCallback<HttpCallbackModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(HttpCallbackModel data) {
|
public void onSuccess(HttpCallbackModel data) {
|
||||||
ToastUtil.show(data.getMsg());
|
ToastUtil.show(data.getMsg());
|
||||||
@ -103,6 +105,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
.getFansExclusivePack(liveUid, id, new HttpCallback<FansGroupGiftPackInfo>() {
|
.getFansExclusivePack(liveUid, id, new HttpCallback<FansGroupGiftPackInfo>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(FansGroupGiftPackInfo data) {
|
public void onSuccess(FansGroupGiftPackInfo data) {
|
||||||
|
giftName.setText(String.format(mContext.getString(R.string.live_fans_group_buy_title), data.getPackName()));
|
||||||
adapter.setList(data.getData());
|
adapter.setList(data.getData());
|
||||||
giftInfo.setText(data.getDescription());
|
giftInfo.setText(data.getDescription());
|
||||||
buy.setText(String.format(mContext.getString(R.string.live_fans_group_buy_buy), data.getCoin()));
|
buy.setText(String.format(mContext.getString(R.string.live_fans_group_buy_buy), data.getCoin()));
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
<string name="live_fans_follow_toast">Join the fan group and unlock exclusive gifts</string>
|
<string name="live_fans_follow_toast">Join the fan group and unlock exclusive gifts</string>
|
||||||
<string name="live_fans_group_send_sub">Gift</string>
|
<string name="live_fans_group_send_sub">Gift</string>
|
||||||
<string name="live_fans_group_send_title">Currently Available To Send</string>
|
<string name="live_fans_group_send_title">Currently Available To Send</string>
|
||||||
<string name="live_fans_group_buy_title">The Perfect GiftPack</string>
|
<string name="live_fans_group_buy_title">The %s</string>
|
||||||
<string name="live_fans_group_buy_info">Purchase a %s Diamond Specific Gift And Receive ALimited Resource</string>
|
<string name="live_fans_group_buy_info">Purchase a %s Diamond Specific Gift And Receive ALimited Resource</string>
|
||||||
<string name="live_fans_group_buy_buy">%s Diamond</string>
|
<string name="live_fans_group_buy_buy">%s Diamond</string>
|
||||||
<string name="live_fans_group_enter_room">Welcome,Fan Club Members</string>
|
<string name="live_fans_group_enter_room">Welcome,Fan Club Members</string>
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
<string name="live_fans_follow_toast">加入粉絲團,解鎖專屬禮物</string>
|
<string name="live_fans_follow_toast">加入粉絲團,解鎖專屬禮物</string>
|
||||||
<string name="live_fans_group_send_sub">赠送</string>
|
<string name="live_fans_group_send_sub">赠送</string>
|
||||||
<string name="live_fans_group_send_title">當前可送出</string>
|
<string name="live_fans_group_send_title">當前可送出</string>
|
||||||
<string name="live_fans_group_buy_title">的臻愛禮包</string>
|
<string name="live_fans_group_buy_title">的%s</string>
|
||||||
<string name="live_fans_group_buy_info">購買可獲得%s鑽特定禮物,同時可獲得限定資源</string>
|
<string name="live_fans_group_buy_info">購買可獲得%s鑽特定禮物,同時可獲得限定資源</string>
|
||||||
<string name="live_fans_group_buy_buy">%s鑽購買</string>
|
<string name="live_fans_group_buy_buy">%s鑽購買</string>
|
||||||
<string name="live_fans_group_enter_room">粉絲團成員歡迎進房</string>
|
<string name="live_fans_group_enter_room">粉絲團成員歡迎進房</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user