Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Call<List<PointedRouteSection>> getPointsBySubgroupCall = restService.calculatePath(
- routePoints.getStartPoint(),
- routePoints.getEndPoint(),
- routePoints.getIntermediatePoints());
- getPointsBySubgroupCall.enqueue(new Callback<List<PointedRouteSection>>() {
- @Override
- public void onResponse(@NonNull Call<List<PointedRouteSection>> call,
- @NonNull Response<List<PointedRouteSection>> response) {
- pointedRouteSections.addAll(response.body());
- calculatedPathRecyclerViewAdapter.notifyDataSetChanged();
- updateRouteScore();
- }
- @Override
- public void onFailure(@NonNull Call<List<PointedRouteSection>> call,
- @NonNull Throwable t) {
- Toast.makeText(getApplicationContext(), "Fail!", Toast.LENGTH_LONG).show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement