6.5.4礼物冠名
This commit is contained in:
@@ -19,7 +19,7 @@ import com.yunbao.common.http.live.LiveNetManager;
|
||||
* wei点亮礼物墙
|
||||
*/
|
||||
public class GiftWithoutWallFragment extends BaseFragment {
|
||||
private String mStream, mLiveUid;
|
||||
private String mStream, mLiveUid, toUid;
|
||||
private RecyclerView withoutList;
|
||||
private LinearLayout giftWallNoData;
|
||||
private GiftWithoutWallAdapter withoutWallAdapter;
|
||||
@@ -34,6 +34,7 @@ public class GiftWithoutWallFragment extends BaseFragment {
|
||||
protected void initVariables(Bundle bundle) {
|
||||
mStream = bundle.getString("mStream");
|
||||
mLiveUid = bundle.getString("mLiveUid");
|
||||
toUid = bundle.getString("toUid");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -48,7 +49,7 @@ public class GiftWithoutWallFragment extends BaseFragment {
|
||||
@Override
|
||||
protected void loadData() {
|
||||
LiveNetManager.get(getActivity()).
|
||||
giftWithoutWall(mLiveUid, new HttpCallback<GiftAlreadyWallModel>() {
|
||||
giftWithoutWall(mLiveUid, toUid, new HttpCallback<GiftAlreadyWallModel>() {
|
||||
@Override
|
||||
public void onSuccess(GiftAlreadyWallModel data) {
|
||||
if (data.getGiftWall().size() > 0) {
|
||||
@@ -68,11 +69,12 @@ public class GiftWithoutWallFragment extends BaseFragment {
|
||||
});
|
||||
}
|
||||
|
||||
public static GiftWithoutWallFragment newInstance(String mStream, String mLiveUid) {
|
||||
public static GiftWithoutWallFragment newInstance(String mStream, String mLiveUid, String toUid) {
|
||||
GiftWithoutWallFragment liveGiftFragment = new GiftWithoutWallFragment();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("mStream", mStream);
|
||||
bundle.putString("mLiveUid", mLiveUid);
|
||||
bundle.putString("toUid", toUid);
|
||||
liveGiftFragment.setArguments(bundle);
|
||||
return liveGiftFragment;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ import com.yunbao.common.bean.SetAttentsModel;
|
||||
import com.yunbao.common.bean.SlideInBannerModel;
|
||||
import com.yunbao.common.bean.StarChallengeStatusModel;
|
||||
import com.yunbao.common.bean.UserAreaBean;
|
||||
import com.yunbao.common.bean.UserMedalListModel;
|
||||
import com.yunbao.common.bean.VipModel;
|
||||
import com.yunbao.common.bean.WishListGiftConfModel;
|
||||
import com.yunbao.common.bean.WishListModel;
|
||||
@@ -841,7 +840,8 @@ public interface PDLiveApi {
|
||||
*/
|
||||
@GET("/api/public/?service=Gift.giftAlreadyWall")
|
||||
Observable<ResponseModel<GiftAlreadyWallModel>> giftAlreadyWall(
|
||||
@Query("liveuid") String liveUid
|
||||
@Query("liveuid") String liveUid,
|
||||
@Query("to_uid") String toUid
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -849,7 +849,8 @@ public interface PDLiveApi {
|
||||
*/
|
||||
@GET("/api/public/?service=Gift.giftWithoutWall")
|
||||
Observable<ResponseModel<GiftAlreadyWallModel>> giftWithoutWall(
|
||||
@Query("liveuid") String liveUid
|
||||
@Query("liveuid") String liveUid,
|
||||
@Query("to_uid") String toUid
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -876,6 +877,7 @@ public interface PDLiveApi {
|
||||
*/
|
||||
@GET("/api/public/?service=Gift.lastMonthGiftNaming")
|
||||
Observable<ResponseModel<List<GiftWallModel>>> lastMonthGiftNaming();
|
||||
|
||||
/**
|
||||
* 礼物墙上月冠名
|
||||
*
|
||||
@@ -890,8 +892,10 @@ public interface PDLiveApi {
|
||||
Observable<ResponseModel<List<GiftGuideModel>>> getGiftGuideHistory(
|
||||
@Query("liveuid") String liveUid
|
||||
);
|
||||
|
||||
@GET("/api/public/?service=Gift.getUserMedalList")
|
||||
Observable<ResponseModel<MedalAchievementModel>> getUserMedalList();
|
||||
Observable<ResponseModel<MedalAchievementModel>> getUserMedalList(@Query("to_uid") String toUid);
|
||||
|
||||
@GET("/api/public/?service=Gift.getLiveMedalList")
|
||||
Observable<ResponseModel<MedalAchievementModel>> getLiveMedalList();
|
||||
|
||||
|
||||
@@ -1801,9 +1801,9 @@ public class LiveNetManager {
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void giftAlreadyWall(String liveUid, HttpCallback<GiftAlreadyWallModel> callback) {
|
||||
public void giftAlreadyWall(String liveUid, String toUid, HttpCallback<GiftAlreadyWallModel> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.giftAlreadyWall(liveUid)
|
||||
.giftAlreadyWall(liveUid, toUid)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<GiftAlreadyWallModel>>() {
|
||||
@@ -1823,9 +1823,9 @@ public class LiveNetManager {
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void giftWithoutWall(String liveUid, HttpCallback<GiftAlreadyWallModel> callback) {
|
||||
public void giftWithoutWall(String liveUid, String toUid, HttpCallback<GiftAlreadyWallModel> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.giftWithoutWall(liveUid)
|
||||
.giftWithoutWall(liveUid, toUid)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<GiftAlreadyWallModel>>() {
|
||||
@@ -1955,9 +1955,9 @@ public class LiveNetManager {
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void getUserMedalList(HttpCallback<MedalAchievementModel> callback) {
|
||||
public void getUserMedalList(String toUid, HttpCallback<MedalAchievementModel> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getUserMedalList()
|
||||
.getUserMedalList(toUid)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<MedalAchievementModel>>() {
|
||||
|
||||
@@ -550,7 +550,7 @@ public class JavascriptInterfaceUtils {
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
public void toGiftNamingAlertAllPageView(String mAnchorName, String mLiveUid, String mAvatarUrl) {
|
||||
public void toGiftNamingAlertAllPageView(String mAnchorName, String mLiveUid, String mAvatarUrl,String toUid) {
|
||||
RouteUtil.forwardGiftWallActivity("", mAnchorName, mLiveUid, mAvatarUrl, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
android:background="@drawable/background_skip_button"
|
||||
android:gravity="center"
|
||||
android:text="@string/instant_light"
|
||||
android:visibility="gone"
|
||||
android:textColor="#F16D00"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user