礼物面板展示福袋全服消息历史
This commit is contained in:
@@ -10,6 +10,7 @@ import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mango.core.gift.bean.LuckyBagNoticeInfo;
|
||||
import com.netease.nim.uikit.common.util.log.LogUtil;
|
||||
import com.netease.nimlib.sdk.chatroom.model.ChatRoomMessage;
|
||||
import com.netease.nimlib.sdk.msg.constant.MsgTypeEnum;
|
||||
@@ -619,6 +620,13 @@ public class GiftModel extends BaseModel implements IGiftModel {
|
||||
.compose(RxHelper.handleSchAndExce());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Single<List<LuckyBagNoticeInfo>> getLuckyGiftMsgList() {
|
||||
return api.getLuckyGiftMsgList()
|
||||
.compose(RxHelper.handleBeanData())
|
||||
.compose(RxHelper.handleSchAndExce());
|
||||
}
|
||||
|
||||
private interface Api {
|
||||
|
||||
/**
|
||||
@@ -678,6 +686,14 @@ public class GiftModel extends BaseModel implements IGiftModel {
|
||||
@Field("giftSource") int giftSource,
|
||||
@Field("chatSessionId") String chatSessionId);
|
||||
|
||||
/**
|
||||
* 福袋最近20条全服记录
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GET("/gift/luckyBag/serviceMsg/record")
|
||||
Single<ServiceResult<List<LuckyBagNoticeInfo>>> getLuckyGiftMsgList();
|
||||
|
||||
}
|
||||
|
||||
private static class UiHandler extends Handler {
|
||||
|
@@ -2,6 +2,8 @@ package com.mango.core.gift;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mango.core.gift.bean.LuckyBagNoticeInfo;
|
||||
import com.mango.core.im.custom.bean.RoomReceivedLuckyGiftAttachment;
|
||||
import com.netease.nimlib.sdk.chatroom.model.ChatRoomMessage;
|
||||
import com.mango.core.bean.response.ServiceResult;
|
||||
import com.mango.core.gift.bean.GiftInfo;
|
||||
@@ -198,4 +200,11 @@ public interface IGiftModel {
|
||||
*/
|
||||
Single<ServiceResult<GiftMultiReceiverInfo>> sendFansTeamGift(int giftId,
|
||||
String targetUid);
|
||||
|
||||
/**
|
||||
* 福袋最近20条全服记录
|
||||
*
|
||||
* @return -
|
||||
*/
|
||||
Single<List<LuckyBagNoticeInfo>> getLuckyGiftMsgList( );
|
||||
}
|
||||
|
Reference in New Issue
Block a user