修复#93测试问题
This commit is contained in:
parent
a78d5b4aba
commit
7ce0bb3a7c
@ -7,6 +7,8 @@ import java.util.List;
|
||||
public class FansGroupGiftPackInfo extends BaseModel {
|
||||
@SerializedName("id")
|
||||
private int id;
|
||||
@SerializedName("pack_name")
|
||||
private String packName;
|
||||
@SerializedName("description")
|
||||
private String description;
|
||||
@SerializedName("coin")
|
||||
@ -17,6 +19,14 @@ public class FansGroupGiftPackInfo extends BaseModel {
|
||||
public FansGroupGiftPackInfo() {
|
||||
}
|
||||
|
||||
public String getPackName() {
|
||||
return packName;
|
||||
}
|
||||
|
||||
public void setPackName(String packName) {
|
||||
this.packName = packName;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
@ -51,8 +61,9 @@ public class FansGroupGiftPackInfo extends BaseModel {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "FansGroupGiftPack{" +
|
||||
return "FansGroupGiftPackInfo{" +
|
||||
"id=" + id +
|
||||
", packName='" + packName + '\'' +
|
||||
", description='" + description + '\'' +
|
||||
", coin='" + coin + '\'' +
|
||||
", data=" + data +
|
||||
|
@ -22,6 +22,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
||||
private TextView anchorName;
|
||||
private TextView buy;
|
||||
private TextView giftInfo;
|
||||
private TextView giftName;
|
||||
private RecyclerView recyclerView;
|
||||
private LiveFansGroupBuyAdapter adapter;
|
||||
private String id;
|
||||
@ -69,9 +70,10 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
||||
super.onCreate();
|
||||
anchorName = findViewById(R.id.anchorName);
|
||||
giftInfo = findViewById(R.id.giftInfo);
|
||||
giftName = findViewById(R.id.giftName);
|
||||
buy = findViewById(R.id.buy);
|
||||
recyclerView = findViewById(R.id.giftList);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(mContext,LinearLayoutManager.HORIZONTAL,false){
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false) {
|
||||
@Override
|
||||
public boolean canScrollHorizontally() {
|
||||
return false;
|
||||
@ -82,7 +84,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
||||
anchorName.setText(name);
|
||||
buy.setOnClickListener(v -> {
|
||||
LiveNetManager.get(mContext)
|
||||
.buyFansExclusivePack(liveUid, id,mSteam, new HttpCallback<HttpCallbackModel>() {
|
||||
.buyFansExclusivePack(liveUid, id, mSteam, new HttpCallback<HttpCallbackModel>() {
|
||||
@Override
|
||||
public void onSuccess(HttpCallbackModel data) {
|
||||
ToastUtil.show(data.getMsg());
|
||||
@ -103,6 +105,7 @@ public class LiveFansGroupBuyDialog extends AbsDialogCenterPopupWindow {
|
||||
.getFansExclusivePack(liveUid, id, new HttpCallback<FansGroupGiftPackInfo>() {
|
||||
@Override
|
||||
public void onSuccess(FansGroupGiftPackInfo data) {
|
||||
giftName.setText(String.format(mContext.getString(R.string.live_fans_group_buy_title), data.getPackName()));
|
||||
adapter.setList(data.getData());
|
||||
giftInfo.setText(data.getDescription());
|
||||
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_group_send_sub">Gift</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_buy">%s Diamond</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_group_send_sub">赠送</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_buy">%s鑽購買</string>
|
||||
<string name="live_fans_group_enter_room">粉絲團成員歡迎進房</string>
|
||||
|
Loading…
Reference in New Issue
Block a user