Package io.getstream.chat.java.models
Class Channel
java.lang.Object
io.getstream.chat.java.models.Channel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignRoles(String type, String id) Creates an assign role requeststatic Channel.ChannelDeleteRequestCreates a delete requestdeleteMany(List<String> cids) export()Creates an export requestexportStatus(String taskId) Creates an export status requestgetOrCreate(String type) Creates a get or create requestgetOrCreate(String type, String id) Creates a get or create requestCreates a hide requestlist()Creates a list requestCreates a mark all read requestCreates a mark read requestmute()Creates a mute requestpartialUpdate(String type, String id) Creates a partial update requestCreates a query members requestvoidsetAdditionalField(String name, Object value) Creates a show requestCreates a truncate requestunmute()Creates an unmute requestCreates an update request
-
Constructor Details
-
Channel
public Channel()
-
-
Method Details
-
getAdditionalFields
-
setAdditionalField
-
getOrCreate
@NotNull public static Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate(@NotNull String type, @NotNull 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 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 String type, @NotNull 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 String type, @NotNull String id) Creates a delete request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
deleteMany
-
list
Creates a list request- Returns:
- the created request
-
truncate
@NotNull public static Channel.ChannelTruncateRequestData.ChannelTruncateRequest truncate(@NotNull String type, @NotNull 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
Creates an export request- Returns:
- the created request
-
exportStatus
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 String type, @NotNull 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 String type, @NotNull String id) Creates a mark read request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
mute
Creates a mute request- Returns:
- the created request
-
show
@NotNull public static Channel.ChannelShowRequestData.ChannelShowRequest show(@NotNull String type, @NotNull String id) Creates a show request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
unmute
Creates an unmute request- Returns:
- the created request
-
partialUpdate
@NotNull public static Channel.ChannelPartialUpdateRequestData.ChannelPartialUpdateRequest partialUpdate(@NotNull String type, @NotNull String id) Creates a partial update request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-
assignRoles
@NotNull public static Channel.AssignRoleRequestData.AssignRoleRequest assignRoles(@NotNull String type, @NotNull String id) Creates an assign role request- Parameters:
type- the channel typeid- the channel id- Returns:
- the created request
-