Package io.getstream.chat.java.services
Interface CommandService
-
public interface CommandService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<Command.CommandCreateResponse>create(Command.CommandCreateRequestData commandCreateRequestData)retrofit2.Call<Command.CommandDeleteResponse>delete(java.lang.String name)retrofit2.Call<Command.CommandGetResponse>get(java.lang.String name)retrofit2.Call<Command.CommandListResponse>list()retrofit2.Call<Command.CommandUpdateResponse>update(java.lang.String name, Command.CommandUpdateRequestData commandUpdateRequestData)
-
-
-
Method Detail
-
create
@POST("commands") @NotNull retrofit2.Call<Command.CommandCreateResponse> create(@NotNull @Body Command.CommandCreateRequestData commandCreateRequestData)
-
get
@GET("commands/{name}") @NotNull retrofit2.Call<Command.CommandGetResponse> get(@NotNull @Path("name") java.lang.String name)
-
update
@PUT("commands/{name}") @NotNull retrofit2.Call<Command.CommandUpdateResponse> update(@NotNull @Path("name") java.lang.String name, @NotNull @Body Command.CommandUpdateRequestData commandUpdateRequestData)
-
delete
@DELETE("commands/{name}") @NotNull retrofit2.Call<Command.CommandDeleteResponse> delete(@NotNull @Path("name") java.lang.String name)
-
list
@GET("commands") @NotNull retrofit2.Call<Command.CommandListResponse> list()
-
-