use of com.zype.fire.api.Model.PlanResponse in project zype-firebuilder by zype.
the class ZypeApi method getPlan.
public PlanResponse getPlan(String planId) {
try {
HashMap<String, String> params = new HashMap<>();
params.put(APP_KEY, ZypeSettings.APP_KEY);
Response response = apiImpl.getPlan(planId, params).execute();
if (response.isSuccessful()) {
return (PlanResponse) response.body();
} else {
return null;
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
Aggregations