io.getstream.chat.java.services.EventService 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.Event.EventSendRequestData;
import io.getstream.chat.java.models.Event.EventSendResponse;
import io.getstream.chat.java.models.Event.EventSendUserCustomRequestData;
import io.getstream.chat.java.models.framework.StreamResponseObject;
import org.jetbrains.annotations.NotNull;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;
public interface EventService {
@POST("channels/{type}/{id}/event")
Call send(
@NotNull @Path("type") String channelType,
@NotNull @Path("id") String channelId,
@NotNull @Body EventSendRequestData eventSendRequestData);
@POST("users/{user_id}/event")
Call sendUserCustom(
@NotNull @Path("user_id") String userId,
@NotNull @Body EventSendUserCustomRequestData eventSendUserCustomRequestData);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy