From c30f18eaa9f5f7ee49e448d49642006225daa6db Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Fri, 15 Mar 2024 17:42:00 +0800 Subject: [PATCH] 5 --- .../common/http/live/LiveNetManager.java | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index f344588e0..512cf203b 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -2789,7 +2789,7 @@ public class LiveNetManager { }).isDisposed(); } - public void addChatCount(String stream,HttpCallback callback) { + public void addChatCount(String stream, HttpCallback callback) { API.get().pdLiveApi(mContext) .addChatCount(stream) .subscribeOn(Schedulers.io()) @@ -3292,6 +3292,7 @@ public class LiveNetManager { } }).isDisposed(); } + public void getMessageSayHiStartTimer( HttpCallback callback) { API.get().pdLiveApi(mContext) @@ -3335,26 +3336,6 @@ public class LiveNetManager { }).isDisposed(); } - public void getUserHomeBanner(String search, HttpCallback> callback) { - API.get().pdLiveApi(mContext) - .getUserHomeBanner(search) - .subscribeOn(Schedulers.io()) - .observeOn(AndroidSchedulers.mainThread()) - .subscribe(roomMicStatusModelResponseModel -> { - if (callback != null) { - callback.onSuccess(roomMicStatusModelResponseModel.getData().getInfo()); - } - }, new Consumer() { - @Override - public void accept(Throwable throwable) throws Exception { - throwable.printStackTrace(); - if (callback != null) { - callback.onError(mContext.getString(R.string.net_error)); - } - } - }).isDisposed(); - } - public void getUserHomeInfo(String touid, HttpCallback callback) { API.get().pdLiveApi(mContext) .getUserHomeInfo(touid) @@ -3407,7 +3388,6 @@ public class LiveNetManager { } - /** * 直播间取消网络请求 */