1:添加酒吧房抱麦推送,在推送过来后,需要选择礼物
2:添加酒吧房设置了自定义礼物推送 3:修改自定义礼物设置的接口,传递了roomId,用于推送消息
This commit is contained in:
@@ -30,7 +30,7 @@ public class RoomMessageEvent extends BaseEvent {
|
||||
public static class T {
|
||||
private String text;
|
||||
private String GiftNum;
|
||||
private String pit_number;//麦位
|
||||
private String pit_number;//麦位 酒吧房的情况下,这个是抱麦的number
|
||||
private String jia_jia;//坐骑
|
||||
private UserInfo FromUserInfo;//从me
|
||||
private UserInfo ToUserInfo;// 到you
|
||||
@@ -47,7 +47,7 @@ public class RoomMessageEvent extends BaseEvent {
|
||||
private List<RoomAuction.AuctionListBean> auction_list; //拍卖列表
|
||||
private long duration;//时间
|
||||
private RoomAuction.AuctionListBean recipient;//是否成功,有值的是成功的,没有值的时候,是失败的
|
||||
private int type;//拍卖者,1:上麦、2:下麦 暴币的时候,1是大奖 2:是小奖
|
||||
private int type;//拍卖者,1:上麦、2:下麦 暴币的时候,1是大奖 2:是小奖 在酒吧房的时候, 0:没有选择自定义礼物 1:选择了自定义礼物
|
||||
private String hot_value;
|
||||
private String SendRoomId;//发起者所在的房间ID
|
||||
private String AcceptRoomId;//接收者所在的房间id
|
||||
|
||||
@@ -165,6 +165,11 @@ public class EMMessageInfo implements MultiItemEntity {
|
||||
public static final int QXRoomMessageTypeFlirtatious = 1200;
|
||||
/// 进入酒吧房的小黑屋
|
||||
public static final int QXRoomMessageTypeFlirtatiousRoom = 1201;
|
||||
/// 酒吧房抱麦推送
|
||||
public static final int QXRoomMessageTypeFlirtatiousRoomPush = 1202;
|
||||
/// 酒吧房设置了自定义礼物推送
|
||||
public static final int QXRoomMessageTypeFlirtatiousRoomCustom = 1203;
|
||||
|
||||
|
||||
|
||||
private RoomMessageEvent emMessage;
|
||||
|
||||
@@ -364,7 +364,7 @@ public interface ApiServer {
|
||||
Call<BaseModel<List<RoonGiftModel>>> getNewGiftList(@Query("label") int label, @Query("type") String type );
|
||||
|
||||
@GET(Constants.SET_CUSTOM_GIFT)
|
||||
Call<BaseModel<String>> setCustomGift(@Query("gift_id") String gift_id, @Query("gift_remark_name") String new_gift_name );
|
||||
Call<BaseModel<String>> setCustomGift(@Query("gift_id") String gift_id, @Query("gift_remark_name") String new_gift_name ,@Query("room_id") String room_id );
|
||||
|
||||
@GET(Constants.TOPIC_LIST)
|
||||
//获取话题
|
||||
|
||||
@@ -2365,8 +2365,8 @@ public class RetrofitClient {
|
||||
});
|
||||
}
|
||||
|
||||
public void setCustomGift(String gift_id, String new_gift_name, BaseObserver<String> observer) {
|
||||
sApiServer.setCustomGift(gift_id, new_gift_name).enqueue(new Callback<BaseModel<String>>() {
|
||||
public void setCustomGift(String gift_id, String new_gift_name,String roomId, BaseObserver<String> observer) {
|
||||
sApiServer.setCustomGift(gift_id, new_gift_name,roomId).enqueue(new Callback<BaseModel<String>>() {
|
||||
|
||||
@Override
|
||||
public void onResponse(Call<BaseModel<String>> call, Response<BaseModel<String>> response) {
|
||||
|
||||
Reference in New Issue
Block a user