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

io.getstream.chat.java.services.PermissionService 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.Permission.PermissionCreateRequestData;
import io.getstream.chat.java.models.Permission.PermissionGetResponse;
import io.getstream.chat.java.models.Permission.PermissionListResponse;
import io.getstream.chat.java.models.Permission.PermissionUpdateRequestData;
import io.getstream.chat.java.models.framework.StreamResponseObject;
import org.jetbrains.annotations.NotNull;
import retrofit2.Call;
import retrofit2.http.*;

public interface PermissionService {

  @POST("permissions")
  @NotNull
  Call create(
      @NotNull @Body PermissionCreateRequestData permissionCreateRequestData);

  @GET("permissions/{id}")
  @NotNull
  Call get(@NotNull @Path("id") String id);

  @PUT("permissions/{id}")
  @NotNull
  Call update(
      @NotNull @Path("id") String id,
      @NotNull @Body PermissionUpdateRequestData permissionUpdateRequestData);

  @DELETE("permissions/{id}")
  @NotNull
  Call delete(@NotNull @Path("id") String name);

  @GET("permissions")
  @NotNull
  Call list();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy