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

io.getstream.chat.java.services.DeviceService 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.Device.DeviceCreateRequestData;
import io.getstream.chat.java.models.Device.DeviceListResponse;
import io.getstream.chat.java.models.framework.StreamResponseObject;
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.Query;

public interface DeviceService {

  @POST("devices")
  Call create(@NotNull @Body DeviceCreateRequestData deviceCreateRequestData);

  @DELETE("devices")
  Call delete(
      @NotNull @Query("id") String id, @NotNull @Query("user_id") String userId);

  @GET("devices")
  Call list(@NotNull @Query("user_id") String userId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy