Skip to content

Instantly share code, notes, and snippets.

@fpatelm
Last active August 1, 2018 23:35
Show Gist options
  • Save fpatelm/060a620a232373570054c2e2629a9e64 to your computer and use it in GitHub Desktop.
Save fpatelm/060a620a232373570054c2e2629a9e64 to your computer and use it in GitHub Desktop.
public static void GetStationList(final String contract, final ICallBackStation oCallBack, Context context){
RestService restService = GetRetrofitService();
HashMap<String, String> queryMap = new HashMap<>();
queryMap.put("apiKey", "XXXXXXXXXXXXXXX");
queryMap.put("contract", contract);
Call<List<StationReply>> call = restService.getStationList(queryMap);
call.enqueue(new Callback<List<StationReply>>() {
@Override
public void onResponse(Call<List<StationReply>> call, Response<List<StationReply>> response) {
}
@Override
public void onFailure(Call<List<StationReply>> call, Throwable t) {
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment