Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / resources / LocationRest.java
package com.example.cosmosclient.resources;

import com.example.cosmosclient.entities.AreaInformation;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;


public interface LocationRest {

    @POST("location")
    @FormUrlEncoded
    Call<AreaInformation> LocationService(@Field("leftLatitude") double leftLat,
                                          @Field("leftLongitude") double leftLon,
                                          @Field("rightLatitude") double rightLat,
                                          @Field("rightLongitude") double rightLon);
}