com.cloudesire.platform.apiclient.api.NotifyApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.NotifyDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;
public interface NotifyApi
{
@POST( "notification" )
Call create( @Body NotifyDTO notification );
@GET( "notification" )
Call> getAll();
@GET( "notification" )
Call> getAll( @Query( "expired" ) boolean expired );
@GET( "notification/{id}" )
Call get( @Path( "id" ) int notificationId );
@PUT( "notification/{id}" )
Call update( @Path( "id" ) int notificationId, @Body NotifyDTO notification );
@DELETE( "notification/{id}" )
Call delete( @Path( "id" ) int notificationId );
}