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 @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest
archive(@NotNull java.lang.String type, @NotNull java.lang.String id, @NotNull java.lang.String userId)
Creates a archive channel requeststatic @NotNull Channel.AssignRoleRequestData.AssignRoleRequest
assignRoles(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates an assign role requeststatic @NotNull Channel.ChannelDeleteRequest
delete(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a delete requeststatic @NotNull Channel.ChannelDeleteManyRequest
deleteMany(@NotNull java.util.List<java.lang.String> cids)
static @NotNull Channel.ChannelExportRequestData.ChannelExportRequest
export()
Creates an export requeststatic @NotNull Channel.ChannelExportStatusRequest
exportStatus(java.lang.String taskId)
Creates an export status requestjava.util.Map<java.lang.String,java.lang.Object>
getAdditionalFields()
static @NotNull Channel.ChannelGetRequestData.ChannelGetRequest
getOrCreate(@NotNull java.lang.String type)
Creates a get or create requeststatic @NotNull Channel.ChannelGetRequestData.ChannelGetRequest
getOrCreate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a get or create requeststatic @NotNull Channel.ChannelHideRequestData.ChannelHideRequest
hide(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a hide requeststatic @NotNull Channel.ChannelListRequestData.ChannelListRequest
list()
Creates a list requeststatic @NotNull Channel.ChannelMarkAllReadRequestData.ChannelMarkAllReadRequest
markAllRead()
Creates a mark all read requeststatic @NotNull Channel.ChannelMarkReadRequestData.ChannelMarkReadRequest
markRead(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a mark read requeststatic @NotNull Channel.ChannelMuteRequestData.ChannelMuteRequest
mute()
Creates a mute requeststatic @NotNull Channel.ChannelPartialUpdateRequestData.ChannelPartialUpdateRequest
partialUpdate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a partial update requeststatic @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest
pin(@NotNull java.lang.String type, @NotNull java.lang.String id, @NotNull java.lang.String userId)
Creates a pin channel requeststatic @NotNull Channel.ChannelQueryMembersRequestData.ChannelQueryMembersRequest
queryMembers()
Creates a query members requestvoid
setAdditionalField(java.lang.String name, java.lang.Object value)
static @NotNull Channel.ChannelShowRequestData.ChannelShowRequest
show(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a show requeststatic @NotNull Channel.ChannelTruncateRequestData.ChannelTruncateRequest
truncate(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates a truncate requeststatic @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest
unarchive(@NotNull java.lang.String type, @NotNull java.lang.String id, @NotNull java.lang.String userId)
Creates a unarchive channel requeststatic @NotNull Channel.ChannelUnMuteRequestData.ChannelUnMuteRequest
unmute()
Creates an unmute requeststatic @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest
unpin(@NotNull java.lang.String type, @NotNull java.lang.String id, @NotNull java.lang.String userId)
Creates a unpin channel requeststatic @NotNull Channel.ChannelUpdateRequestData.ChannelUpdateRequest
update(@NotNull java.lang.String type, @NotNull java.lang.String id)
Creates an update requeststatic @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest
updateMemberPartial(@NotNull java.lang.String type, @NotNull java.lang.String id, @NotNull java.lang.String userId)
Creates a update member partial 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 @NotNull Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate(@NotNull @NotNull java.lang.String type)
Creates a get or create request- Parameters:
type
- the channel type- Returns:
- the created request
-
update
@NotNull public static @NotNull Channel.ChannelUpdateRequestData.ChannelUpdateRequest update(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelDeleteRequest delete(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id)
Creates a delete request- Parameters:
type
- the channel typeid
- the channel id- Returns:
- the created request
-
deleteMany
@NotNull public static @NotNull Channel.ChannelDeleteManyRequest deleteMany(@NotNull @NotNull java.util.List<java.lang.String> cids)
-
list
@NotNull public static @NotNull Channel.ChannelListRequestData.ChannelListRequest list()
Creates a list request- Returns:
- the created request
-
truncate
@NotNull public static @NotNull Channel.ChannelTruncateRequestData.ChannelTruncateRequest truncate(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelQueryMembersRequestData.ChannelQueryMembersRequest queryMembers()
Creates a query members request- Returns:
- the created request
-
export
@NotNull public static @NotNull Channel.ChannelExportRequestData.ChannelExportRequest export()
Creates an export request- Returns:
- the created request
-
exportStatus
@NotNull public static @NotNull 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 @NotNull Channel.ChannelHideRequestData.ChannelHideRequest hide(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelMarkAllReadRequestData.ChannelMarkAllReadRequest markAllRead()
Creates a mark all read request- Returns:
- the created request
-
markRead
@NotNull public static @NotNull Channel.ChannelMarkReadRequestData.ChannelMarkReadRequest markRead(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelMuteRequestData.ChannelMuteRequest mute()
Creates a mute request- Returns:
- the created request
-
show
@NotNull public static @NotNull Channel.ChannelShowRequestData.ChannelShowRequest show(@NotNull @NotNull java.lang.String type, @NotNull @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 @NotNull Channel.ChannelUnMuteRequestData.ChannelUnMuteRequest unmute()
Creates an unmute request- Returns:
- the created request
-
partialUpdate
@NotNull public static @NotNull Channel.ChannelPartialUpdateRequestData.ChannelPartialUpdateRequest partialUpdate(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id)
Creates a partial update request- Parameters:
type
- the channel typeid
- the channel id- Returns:
- the created request
-
assignRoles
@NotNull public static @NotNull Channel.AssignRoleRequestData.AssignRoleRequest assignRoles(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id)
Creates an assign role request- Parameters:
type
- the channel typeid
- the channel id- Returns:
- the created request
-
updateMemberPartial
@NotNull public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest updateMemberPartial(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String userId)
Creates a update member partial request- Parameters:
type
- the channel typeid
- the channel iduserId
- the user id- Returns:
- the created request
-
pin
@NotNull public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest pin(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String userId)
Creates a pin channel request- Parameters:
type
- the channel typeid
- the channel iduserId
- the user id- Returns:
- the created request
-
unpin
@NotNull public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest unpin(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String userId)
Creates a unpin channel request- Parameters:
type
- the channel typeid
- the channel iduserId
- the user id- Returns:
- the created request
-
archive
@NotNull public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest archive(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String userId)
Creates a archive channel request- Parameters:
type
- the channel typeid
- the channel iduserId
- the user id- Returns:
- the created request
-
unarchive
@NotNull public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest unarchive(@NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String userId)
Creates a unarchive channel request- Parameters:
type
- the channel typeid
- the channel iduserId
- the user id- Returns:
- the created request
-
-