io.getstream.chat.java.services.CommandService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream-chat-java-all Show documentation
Show all versions of stream-chat-java-all Show documentation
Stream Chat Java Client for backend integrations
package io.getstream.chat.java.services;
import io.getstream.chat.java.models.Command.CommandCreateRequestData;
import io.getstream.chat.java.models.Command.CommandCreateResponse;
import io.getstream.chat.java.models.Command.CommandDeleteResponse;
import io.getstream.chat.java.models.Command.CommandGetResponse;
import io.getstream.chat.java.models.Command.CommandListResponse;
import io.getstream.chat.java.models.Command.CommandUpdateRequestData;
import io.getstream.chat.java.models.Command.CommandUpdateResponse;
import org.jetbrains.annotations.NotNull;
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;
public interface CommandService {
@POST("commands")
@NotNull
Call create(
@NotNull @Body CommandCreateRequestData commandCreateRequestData);
@GET("commands/{name}")
@NotNull
Call get(@NotNull @Path("name") String name);
@PUT("commands/{name}")
@NotNull
Call update(
@NotNull @Path("name") String name,
@NotNull @Body CommandUpdateRequestData commandUpdateRequestData);
@DELETE("commands/{name}")
@NotNull
Call delete(@NotNull @Path("name") String name);
@GET("commands")
@NotNull
Call list();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy