Refactor of service
This commit is contained in:
parent
5116828ca3
commit
5eea1133b9
@ -30,7 +30,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
Coordinates service = RetrofitClientInstance.createService(Coordinates.class,authToken);
|
||||
|
||||
Call<List<Coordinate>> call = service.getTopCoordinates(authToken);
|
||||
Call<List<Coordinate>> call = service.getTopCoordinates();
|
||||
|
||||
|
||||
call.enqueue(new Callback<List<Coordinate>>() {
|
||||
|
@ -30,7 +30,7 @@ public interface Coordinates {
|
||||
Call<List<Coordinate>> getTopCoordinatesByUserId(@Path("userId") String userId , @Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/top")
|
||||
Call<List<Coordinate>> getTopCoordinates(@Header("Authorization") String auth);
|
||||
Call<List<Coordinate>> getTopCoordinates();
|
||||
|
||||
@GET("api/coordinates/top/online")
|
||||
Call<List<Coordinate>> getOnlineCoordinates(@Header("Authorization") JwtToken token);
|
||||
|
Loading…
Reference in New Issue
Block a user