All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.getstream.chat.java.services.CommandService Maven / Gradle / Ivy

There is a newer version: 1.27.2
Show newest version
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