use of com.zype.fire.api.Model.AppResponse in project zype-firebuilder by zype.
the class ZypeApi method getApp.
public AppResponse getApp() {
try {
HashMap<String, String> params = new HashMap<>();
params.put(APP_KEY, ZypeSettings.APP_KEY);
Response response = apiImpl.getApp(params).execute();
if (response.isSuccessful()) {
return (AppResponse) response.body();
} else {
return null;
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
use of com.zype.fire.api.Model.AppResponse in project zype-firebuilder by zype.
the class ZypeDataDownloader method loadAppConfiguration.
private AppData loadAppConfiguration() {
AppData result = new AppData();
AppResponse appResponse = ZypeApi.getInstance().getApp();
if (appResponse != null && appResponse.data != null) {
result = appResponse.data;
}
// TODO: Delete this for release build
result.universalTVOD = null;
return result;
}
Aggregations