[Modify]首充弹窗接口
This commit is contained in:
@@ -53,6 +53,7 @@ import com.yizhuan.xchat_android_core.statistic.protocol.StatisticsProtocol;
|
||||
import com.yizhuan.xchat_android_core.super_admin.bean.KickOutExtBean;
|
||||
import com.yizhuan.xchat_android_core.super_admin.util.SuperAdminUtil;
|
||||
import com.yizhuan.xchat_android_core.user.UserModel;
|
||||
import com.yizhuan.xchat_android_core.user.bean.FirstChargeInfo;
|
||||
import com.yizhuan.xchat_android_core.user.bean.UserInfo;
|
||||
import com.yizhuan.xchat_android_core.utils.net.RxHelper;
|
||||
import com.yizhuan.xchat_android_library.net.rxnet.callback.CallBack;
|
||||
@@ -637,6 +638,21 @@ public class AvRoomModel extends RoomBaseModel implements IAvRoomModel {
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Single<FirstChargeInfo> getFirstCharge() {
|
||||
return mRoomService.getFirstCharge(AvRoomDataManager.get().getRoomUid())
|
||||
.compose(RxHelper.handleBeanData())
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Single<String> postFirstCharge() {
|
||||
return mRoomService.postFirstCharge(AvRoomDataManager.get().getRoomUid())
|
||||
.compose(RxHelper.handleStringData())
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 公屏历史消息
|
||||
*/
|
||||
|
@@ -50,6 +50,7 @@ import com.yizhuan.xchat_android_core.room.pk.model.PkModel;
|
||||
import com.yizhuan.xchat_android_core.room.queue.bean.MicMemberInfo;
|
||||
import com.yizhuan.xchat_android_core.user.UserModel;
|
||||
import com.yizhuan.xchat_android_core.user.bean.BaseInfo;
|
||||
import com.yizhuan.xchat_android_core.user.bean.FirstChargeInfo;
|
||||
import com.yizhuan.xchat_android_core.user.bean.UserInfo;
|
||||
import com.yizhuan.xchat_android_core.utils.net.RxHelper;
|
||||
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
|
||||
@@ -1162,6 +1163,25 @@ public class RoomBaseModel extends BaseModel implements IRoomBaseModel {
|
||||
@GET("/roomFreeGift/get")
|
||||
Single<ServiceResult<GiftFreeInfo>> getFreeFlower();
|
||||
|
||||
/**
|
||||
* 获取首充弹窗
|
||||
*
|
||||
* @param roomUid
|
||||
* @return
|
||||
*/
|
||||
@GET("/roomFirstChargeWindow/get")
|
||||
Single<ServiceResult<FirstChargeInfo>> getFirstCharge(@Query("roomUid") long roomUid);
|
||||
|
||||
/**
|
||||
* 更新首充弹窗显示
|
||||
*
|
||||
* @param roomUid
|
||||
* @return
|
||||
*/
|
||||
@FormUrlEncoded
|
||||
@POST("/roomFirstChargeWindow/update")
|
||||
Single<ServiceResult<String>> postFirstCharge(@Field("roomUid") long roomUid);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -14,6 +14,7 @@ import com.yizhuan.xchat_android_core.room.bean.RoomResult;
|
||||
import com.yizhuan.xchat_android_core.room.bean.RoomWelcomeConfig;
|
||||
import com.yizhuan.xchat_android_core.room.bean.SearchRoomInfo;
|
||||
import com.yizhuan.xchat_android_core.room.bean.SimplePartyRoomInfo;
|
||||
import com.yizhuan.xchat_android_core.user.bean.FirstChargeInfo;
|
||||
import com.yizhuan.xchat_android_library.net.rxnet.callback.CallBack;
|
||||
|
||||
import java.util.List;
|
||||
@@ -185,4 +186,8 @@ public interface IAvRoomModel extends IModel {
|
||||
|
||||
void loadMessageHistory(long startTime);
|
||||
|
||||
Single<FirstChargeInfo> getFirstCharge();
|
||||
|
||||
Single<String> postFirstCharge();
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,10 @@
|
||||
package com.yizhuan.xchat_android_core.user.bean
|
||||
|
||||
import lombok.Data
|
||||
|
||||
@Data
|
||||
data class FirstChargeInfo(
|
||||
val needToShow: Boolean = false,
|
||||
val roomUid: Long = 0,
|
||||
val showAfterSecond: Long = 0
|
||||
)
|
Reference in New Issue
Block a user