6.5.4礼物冠名
This commit is contained in:
@@ -82,27 +82,52 @@ public class GiftAlreadyWallFragment extends BaseFragment {
|
||||
|
||||
@Override
|
||||
protected void loadData() {
|
||||
LiveNetManager.get(getActivity()).
|
||||
giftAlreadyWall(mLiveUid, toUid, new HttpCallback<GiftAlreadyWallModel>() {
|
||||
@Override
|
||||
public void onSuccess(GiftAlreadyWallModel data) {
|
||||
if (data.getGiftWall().size() > 0) {
|
||||
giftWallNoData.setVisibility(View.GONE);
|
||||
giftWallData.setVisibility(View.VISIBLE);
|
||||
alreadyWallAdapter.addAllData(data.getGiftWall());
|
||||
litIcon.setText(data.getGiftWallLightenNumber());
|
||||
giftAll.setText("/" + data.getGiftWallLightenTotal());
|
||||
} else {
|
||||
giftWallNoData.setVisibility(View.VISIBLE);
|
||||
giftWallData.setVisibility(View.GONE);
|
||||
if (isAnchor){
|
||||
LiveNetManager.get(getActivity()).
|
||||
giftAlreadyWall(mLiveUid, toUid, new HttpCallback<GiftAlreadyWallModel>() {
|
||||
@Override
|
||||
public void onSuccess(GiftAlreadyWallModel data) {
|
||||
if (data.getGiftWall().size() > 0) {
|
||||
giftWallNoData.setVisibility(View.GONE);
|
||||
giftWallData.setVisibility(View.VISIBLE);
|
||||
alreadyWallAdapter.addAllData(data.getGiftWall());
|
||||
litIcon.setText(data.getGiftWallLightenNumber());
|
||||
giftAll.setText("/" + data.getGiftWallLightenTotal());
|
||||
} else {
|
||||
giftWallNoData.setVisibility(View.VISIBLE);
|
||||
giftWallData.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}else {
|
||||
LiveNetManager.get(getActivity()).
|
||||
giftUserSendWall(mLiveUid, toUid, new HttpCallback<GiftAlreadyWallModel>() {
|
||||
@Override
|
||||
public void onSuccess(GiftAlreadyWallModel data) {
|
||||
if (data.getGiftWall().size() > 0) {
|
||||
giftWallNoData.setVisibility(View.GONE);
|
||||
giftWallData.setVisibility(View.VISIBLE);
|
||||
alreadyWallAdapter.addAllData(data.getGiftWall());
|
||||
litIcon.setText(data.getGiftWallLightenNumber());
|
||||
giftAll.setText("/" + data.getGiftWallLightenTotal());
|
||||
} else {
|
||||
giftWallNoData.setVisibility(View.VISIBLE);
|
||||
giftWallData.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static GiftAlreadyWallFragment newInstance(String mStream, String mLiveUid, String toUid, boolean isAnchor) {
|
||||
|
||||
Reference in New Issue
Block a user