version:3.7beta

fix:移除HTTPInterface,所有请求在NetInterfaceManager进行
update:
This commit is contained in:
2022-04-08 09:33:55 +08:00
parent f2cc0aea30
commit 0cb21ceadc
29 changed files with 1408 additions and 1463 deletions

View File

@@ -1,9 +0,0 @@
package com.aoleyun.sn.network;
public class HTTPInterface {
private static final String TAG = HTTPInterface.class.getSimpleName();
private static final int OK = 200;
}

View File

@@ -32,10 +32,10 @@ public class UrlAddress {
public static final String GET_DEVICES_TAGS = "Sn/getSnTag";
/*浏览器书签主页设置*/
public static final String SET_HOMEPAG_TAG = "Label";
/*app内部网页管控*/
public static final String SET_APPINSIDEWEB = "Appground";
/*浏览器黑白名单地址*/
public static final String SET_BROWSER_LIST = "browser";
/*app内部网页管控*/
public static final String SET_APPINSIDEWEB = "Appground";
/*强制安装应用*/
public static final String GET_FORCE_INSTALL_LIST = "forceinstall/index";
/*应用白名单*/

View File

@@ -1,5 +1,6 @@
package com.aoleyun.sn.network.api.post;
import com.aoleyun.sn.bean.AppLimit;
import com.aoleyun.sn.bean.BaseResponse;
import com.aoleyun.sn.network.UrlAddress;
@@ -11,7 +12,7 @@ import retrofit2.http.POST;
public interface AppLimitApi {
@FormUrlEncoded
@POST(UrlAddress.SET_WHITE_PACKAGE_LIST)
Observable<BaseResponse> getAppLimitApi(
Observable<BaseResponse<AppLimit>> getAppLimitApi(
@Field("key") String key,
@Field("sn") String sn
);

View File

@@ -1,6 +1,7 @@
package com.aoleyun.sn.network.api.post;
import com.aoleyun.sn.bean.BaseResponse;
import com.aoleyun.sn.bean.CustomROMApp;
import com.aoleyun.sn.network.UrlAddress;
import io.reactivex.rxjava3.core.Observable;
@@ -11,7 +12,7 @@ import retrofit2.http.POST;
public interface CustomROMAppApi {
@FormUrlEncoded
@POST(UrlAddress.GET_ROM_APP)
Observable<BaseResponse> getROMApp(
Observable<BaseResponse<CustomROMApp>> getROMApp(
@Field("key") String key,
@Field("version_number") String version_number
);

View File

@@ -1,5 +1,7 @@
package com.aoleyun.sn.network.api.post;
import com.aoleyun.sn.bean.AppID;
import com.aoleyun.sn.bean.BaseResponse;
import com.aoleyun.sn.network.UrlAddress;
import io.reactivex.rxjava3.core.Observable;
@@ -11,7 +13,7 @@ import retrofit2.http.POST;
public interface DeselectIDApi {
@FormUrlEncoded
@POST(UrlAddress.GET_APPID)
Observable<ResponseBody> getDeselectIDApi(
Observable<BaseResponse<AppID>> getDeselectIDApi(
@Field("key") String key,
@Field("sn") String sn
);

View File

@@ -1,6 +1,7 @@
package com.aoleyun.sn.network.api.post;
import com.aoleyun.sn.bean.BaseResponse;
import com.aoleyun.sn.bean.EBagCode;
import com.aoleyun.sn.network.UrlAddress;
import io.reactivex.rxjava3.core.Observable;
@@ -11,7 +12,7 @@ import retrofit2.http.POST;
public interface GetEBagCodeApi {
@FormUrlEncoded
@POST(UrlAddress.GET_EBAG_CODE)
Observable<BaseResponse> getEBagCode(
Observable<BaseResponse<EBagCode>> getEBagCode(
@Field("key") String key,
@Field("sn") String sn
);

View File

@@ -1,9 +1,9 @@
package com.aoleyun.sn.network.api.post;
import com.aoleyun.sn.bean.BaseResponse;
import com.aoleyun.sn.network.UrlAddress;
import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
@@ -11,7 +11,7 @@ import retrofit2.http.POST;
public interface SystemSettingApi {
@FormUrlEncoded
@POST(UrlAddress.GET_FIRMWARE)
Observable<ResponseBody> getSystemSettingApi(
Observable<BaseResponse> getSystemSettingApi(
@Field("key") String key,
@Field("sn") String sn
);