Package io.getstream.chat.java.services
Interface CommandService
public interface CommandService
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<Command.CommandCreateResponse>create(Command.CommandCreateRequestData commandCreateRequestData) retrofit2.Call<Command.CommandDeleteResponse>retrofit2.Call<Command.CommandGetResponse>retrofit2.Call<Command.CommandListResponse>list()retrofit2.Call<Command.CommandUpdateResponse>update(String name, Command.CommandUpdateRequestData commandUpdateRequestData)
-
Method Details
-
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") String name) -
update
@PUT("commands/{name}") @NotNull retrofit2.Call<Command.CommandUpdateResponse> update(@NotNull @Path("name") String name, @NotNull @Body Command.CommandUpdateRequestData commandUpdateRequestData) -
delete
@DELETE("commands/{name}") @NotNull retrofit2.Call<Command.CommandDeleteResponse> delete(@NotNull @Path("name") String name) -
list
-