package com.anand.geofence.retrofit;


import com.anand.geofence.model.request.geofence.GeoLocationRequest;
import com.anand.geofence.model.response.geofence.GeoLocationResponse;
import com.anand.geofence.model.response.geofence.GetGeoLocationResponse;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiInterface {
    @POST("geofence/api/request_post_geo.php")
    Call<GeoLocationResponse> sentGeoLocation(@Body GeoLocationRequest geoLocationRequest);

    @GET("geofence/api/geolist.php")
    Call<GetGeoLocationResponse> getAllGeoLocations(@Query("publisherid") String publisherid);
}
