Last active
August 1, 2018 23:35
-
-
Save fpatelm/060a620a232373570054c2e2629a9e64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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