App List v1.4.1版本的 MD5 值为:83af4eccc4c2dbeaca363142fe3c4495
以下内容为反编译后的 AppStoreApiImpl.java 源代码,内容仅作参考
package com.cvte.tv.appstore.modules.webclient.impl;
import android.os.SystemClock;
import com.cvte.tv.appstore.modules.a.a;
import com.cvte.tv.appstore.modules.webclient.c;
import com.cvte.tv.appstore.modules.webclient.interfaces.IAppStoreApi;
import com.google.gson.JsonObject;
import retrofit.RetrofitError;
import retrofit.http.Path;
import retrofit.http.Query;
public class AppStoreApiImpl {
IAppStoreApi f694a = (IAppStoreApi) c.a().a(IAppStoreApi.class);
public JsonObject getCategory(@Path("deviceType") int i, @Path("deviceId") String str, @Path("language") String str2, @Path("protocolVersion") String str3) {
long elapsedRealtime = SystemClock.elapsedRealtime();
String format = String.format("/ws/apkCategory/getCategory/%d/%s/%s/%s", Integer.valueOf(i), str, str2, str3);
try {
JsonObject category = this.f694a.getCategory(i, str, str2, str3);
a.a(category, elapsedRealtime, "http://starkapp.cvte.com/" + format, "GET");
return category;
} catch (RetrofitError e) {
a.a(e, elapsedRealtime, "GET");
return null;
} catch (Exception e2) {
a.a("http://starkapp.cvte.com/" + format, e2.getMessage());
return null;
}
}
public JsonObject getSoftware(@Path("appId") String str) {
return getSoftware("zh_CN", str);
}
public JsonObject getSoftware(@Path("language") String str, @Path("appId") String str2) {
long elapsedRealtime = SystemClock.elapsedRealtime();
String format = String.format("/ws/apk/getUpgradeSoftWare/%s/%s", str, str2);
try {
JsonObject software = this.f694a.getSoftware(str, str2);
a.a(software, elapsedRealtime, "http://starkapp.cvte.com/" + format, "GET");
return software;
} catch (RetrofitError e) {
a.a(e, elapsedRealtime, "GET");
return null;
} catch (Exception e2) {
a.a("http://starkapp.cvte.com/" + format, e2.getMessage());
return null;
}
}
public JsonObject getUpgradeSoftWare(@Query("json") String str) {
long elapsedRealtime = SystemClock.elapsedRealtime();
String format = String.format("/ws/apk/getUpgradeSoftWare/%s", str);
try {
JsonObject upgradeSoftWare = this.f694a.getUpgradeSoftWare("json=" + str);
a.a(upgradeSoftWare, elapsedRealtime, "http://starkapp.cvte.com/" + format, "GET");
return upgradeSoftWare;
} catch (RetrofitError e) {
a.a(e, elapsedRealtime, "GET");
return null;
} catch (Exception e2) {
a.a("http://starkapp.cvte.com/" + format, e2.getMessage());
return null;
}
}
}