Package io.getstream.chat.java.models
Class Channel
- java.lang.Object
-
- io.getstream.chat.java.models.Channel
-
public class Channel extends java.lang.Object
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description Channel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Channel.ChannelDeleteRequestdelete(java.lang.String type, java.lang.String id)Creates a delete requeststatic Channel.ChannelExportRequestData.ChannelExportRequestexport()Creates an export requeststatic Channel.ChannelExportStatusRequestexportStatus(java.lang.String taskId)Creates an export status requestjava.util.Map<java.lang.String,java.lang.Object>getAdditionalFields()static Channel.ChannelGetRequestData.ChannelGetRequestgetOrCreate(java.lang.String type)Creates a get or create requeststatic Channel.ChannelGetRequestData.ChannelGetRequestgetOrCreate(java.lang.String type, java.lang.String id)Creates a get or create requeststatic Channel.ChannelHideRequestData.ChannelHideRequesthide(java.lang.String type, java.lang.String id)Creates a hide requeststatic Channel.ChannelListRequestData.ChannelListRequestlist()Creates a list requeststatic Channel.ChannelMarkAllReadRequestData.ChannelMarkAllReadRequestmarkAllRead()Creates a mark all read requeststatic Channel.ChannelMarkReadRequestData.ChannelMarkReadRequestmarkRead(java.lang.String type, java.lang.String id)Creates a mark read requeststatic Channel.ChannelMuteRequestData.ChannelMuteRequestmute()Creates a mute requeststatic Channel.ChannelPartialUpdateRequestData.ChannelPartialUpdateRequestpartialUpdate(java.lang.String type, java.lang.String id)Creates a partial update requeststatic Channel.ChannelQueryMembersRequestData.ChannelQueryMembersRequestqueryMembers()Creates a query members requestvoidsetAdditionalField(java.lang.String name, java.lang.Object value)static Channel.ChannelShowRequestData.ChannelShowRequestshow(java.lang.String type, java.lang.String id)Creates a show requeststatic Channel.ChannelTruncateRequesttruncate(java.lang.String type, java.lang.String id)Creates a truncate requeststatic Channel.ChannelUnMuteRequestData.ChannelUnMuteRequestunmute()Creates an unmute requeststatic Channel.ChannelUpdateRequestData.ChannelUpdateRequestupdate(java.lang.String type, java.lang.String id)Creates an update request
-
-
-
Method Detail
-
getAdditionalFields
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalFields()
-
setAdditionalField
public void setAdditionalField(java.lang.String name, java.lang.Object value)
-
getOrCreate
@NotNull public static Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a get or create request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
getOrCreate
@NotNull public static Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate(@NotNull java.lang.String type)
Creates a get or create request- Parameters:
type- the channel type- Returns:
- the created request
-
update
@NotNull public static Channel.ChannelUpdateRequestData.ChannelUpdateRequest update(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates an update request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
delete
@NotNull public static Channel.ChannelDeleteRequest delete(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a delete request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
list
@NotNull public static Channel.ChannelListRequestData.ChannelListRequest list()
Creates a list request- Returns:
- the created request
-
truncate
@NotNull public static Channel.ChannelTruncateRequest truncate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a truncate request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
queryMembers
@NotNull public static Channel.ChannelQueryMembersRequestData.ChannelQueryMembersRequest queryMembers()
Creates a query members request- Returns:
- the created request
-
export
@NotNull public static Channel.ChannelExportRequestData.ChannelExportRequest export()
Creates an export request- Returns:
- the created request
-
exportStatus
@NotNull public static Channel.ChannelExportStatusRequest exportStatus(java.lang.String taskId)
Creates an export status request- Parameters:
taskId- the id of the export task- Returns:
- the created request
-
hide
@NotNull public static Channel.ChannelHideRequestData.ChannelHideRequest hide(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a hide request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
markAllRead
@NotNull public static Channel.ChannelMarkAllReadRequestData.ChannelMarkAllReadRequest markAllRead()
Creates a mark all read request- Returns:
- the created request
-
markRead
@NotNull public static Channel.ChannelMarkReadRequestData.ChannelMarkReadRequest markRead(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a mark read request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
mute
@NotNull public static Channel.ChannelMuteRequestData.ChannelMuteRequest mute()
Creates a mute request- Returns:
- the created request
-
show
@NotNull public static Channel.ChannelShowRequestData.ChannelShowRequest show(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a show request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
unmute
@NotNull public static Channel.ChannelUnMuteRequestData.ChannelUnMuteRequest unmute()
Creates an unmute request- Returns:
- the created request
-
partialUpdate
@NotNull public static Channel.ChannelPartialUpdateRequestData.ChannelPartialUpdateRequest partialUpdate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a partial update request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
-