This commit is contained in:
hch 2024-03-15 17:42:00 +08:00
parent 4de3dce2fd
commit c30f18eaa9

View File

@ -2789,7 +2789,7 @@ public class LiveNetManager {
}).isDisposed(); }).isDisposed();
} }
public void addChatCount(String stream,HttpCallback<HttpCallbackModel> callback) { public void addChatCount(String stream, HttpCallback<HttpCallbackModel> callback) {
API.get().pdLiveApi(mContext) API.get().pdLiveApi(mContext)
.addChatCount(stream) .addChatCount(stream)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
@ -3292,6 +3292,7 @@ public class LiveNetManager {
} }
}).isDisposed(); }).isDisposed();
} }
public void getMessageSayHiStartTimer( public void getMessageSayHiStartTimer(
HttpCallback<MessageSayHiStartBean> callback) { HttpCallback<MessageSayHiStartBean> callback) {
API.get().pdLiveApi(mContext) API.get().pdLiveApi(mContext)
@ -3335,26 +3336,6 @@ public class LiveNetManager {
}).isDisposed(); }).isDisposed();
} }
public void getUserHomeBanner(String search, HttpCallback<List<String>> 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<Throwable>() {
@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<HomeUserInfoBean> callback) { public void getUserHomeInfo(String touid, HttpCallback<HomeUserInfoBean> callback) {
API.get().pdLiveApi(mContext) API.get().pdLiveApi(mContext)
.getUserHomeInfo(touid) .getUserHomeInfo(touid)
@ -3407,7 +3388,6 @@ public class LiveNetManager {
} }
/** /**
* 直播间取消网络请求 * 直播间取消网络请求
*/ */