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