Package io.getstream.chat.java.models
Class ChannelType
- java.lang.Object
-
- io.getstream.chat.java.models.ChannelType
-
- Direct Known Subclasses:
ChannelType.ChannelTypeWithCommands,ChannelType.ChannelTypeWithStringCommands
public class ChannelType extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannelType.Actionstatic classChannelType.AutoModstatic classChannelType.AutoModBehaviorstatic classChannelType.BlocklistBehaviorstatic classChannelType.ChannelTypeCreateRequestDatastatic classChannelType.ChannelTypeCreateResponsestatic classChannelType.ChannelTypeDeleteRequeststatic classChannelType.ChannelTypeGetRequeststatic classChannelType.ChannelTypeGetResponsestatic classChannelType.ChannelTypeListRequeststatic classChannelType.ChannelTypeListResponsestatic classChannelType.ChannelTypeUpdateRequestDatastatic classChannelType.ChannelTypeUpdateResponsestatic classChannelType.ChannelTypeWithCommandsstatic classChannelType.ChannelTypeWithStringCommandsstatic classChannelType.PermissionRequestObjectstatic classChannelType.Policystatic classChannelType.Rightstatic classChannelType.Thresholdstatic classChannelType.ThresholdRequestObject
-
Constructor Summary
Constructors Constructor Description ChannelType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static @NotNull ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequestcreate()Creates an create requeststatic @NotNull ChannelType.ChannelTypeDeleteRequestdelete(java.lang.String name)Creates a delete requestbooleanequals(java.lang.Object o)static @NotNull ChannelType.ChannelTypeGetRequestget(java.lang.String name)Creates a get request@Nullable ChannelType.AutoModgetAutomod()@Nullable ChannelType.AutoModBehaviorgetAutomodBehavior()@Nullable java.util.Map<java.lang.String,ChannelType.Threshold>getAutomodThresholds()@Nullable java.lang.StringgetBlocklist()@Nullable ChannelType.BlocklistBehaviorgetBlocklistBehavior()@Nullable java.lang.BooleangetConnectEvents()@Nullable java.lang.BooleangetCountMessages()@Nullable java.util.DategetCreatedAt()@Nullable java.lang.BooleangetCustomEvents()@Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>>getGrants()@Nullable java.lang.BooleangetMarkMessagesPending()@Nullable java.lang.IntegergetMaxMessageLength()@Nullable java.lang.StringgetMessageRetention()@Nullable java.lang.BooleangetMutes()@NotNull java.lang.StringgetName()@Nullable java.util.List<ChannelType.Policy>getPermissions()@Nullable java.lang.BooleangetPushNotifications()@Nullable java.lang.BooleangetQuotes()@Nullable java.lang.BooleangetReactions()@Nullable java.lang.BooleangetReadEvents()@Nullable java.lang.BooleangetReminders()@Nullable java.lang.BooleangetReplies()@Nullable java.util.Map<java.lang.String,java.util.List<ChannelType.Right>>getRoles()@Nullable java.lang.BooleangetSearch()@Nullable java.lang.BooleangetTypingEvents()@Nullable java.util.DategetUpdatedAt()@Nullable java.lang.BooleangetUploads()@Nullable java.lang.BooleangetUrlEnrichment()inthashCode()static @NotNull ChannelType.ChannelTypeListRequestlist()Creates a list requestvoidsetAutomod(@Nullable ChannelType.AutoMod automod)voidsetAutomodBehavior(@Nullable ChannelType.AutoModBehavior automodBehavior)voidsetAutomodThresholds(@Nullable java.util.Map<java.lang.String,ChannelType.Threshold> automodThresholds)voidsetBlocklist(@Nullable java.lang.String blocklist)voidsetBlocklistBehavior(@Nullable ChannelType.BlocklistBehavior blocklistBehavior)voidsetConnectEvents(@Nullable java.lang.Boolean connectEvents)voidsetCountMessages(@Nullable java.lang.Boolean countMessages)voidsetCreatedAt(@Nullable java.util.Date createdAt)voidsetCustomEvents(@Nullable java.lang.Boolean customEvents)voidsetGrants(@Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>> grants)voidsetMarkMessagesPending(@Nullable java.lang.Boolean markMessagesPending)voidsetMaxMessageLength(@Nullable java.lang.Integer maxMessageLength)voidsetMessageRetention(@Nullable java.lang.String messageRetention)voidsetMutes(@Nullable java.lang.Boolean mutes)voidsetName(@NotNull java.lang.String name)voidsetPermissions(@Nullable java.util.List<ChannelType.Policy> permissions)voidsetPushNotifications(@Nullable java.lang.Boolean pushNotifications)voidsetQuotes(@Nullable java.lang.Boolean quotes)voidsetReactions(@Nullable java.lang.Boolean reactions)voidsetReadEvents(@Nullable java.lang.Boolean readEvents)voidsetReminders(@Nullable java.lang.Boolean reminders)voidsetReplies(@Nullable java.lang.Boolean replies)voidsetRoles(@Nullable java.util.Map<java.lang.String,java.util.List<ChannelType.Right>> roles)voidsetSearch(@Nullable java.lang.Boolean search)voidsetTypingEvents(@Nullable java.lang.Boolean typingEvents)voidsetUpdatedAt(@Nullable java.util.Date updatedAt)voidsetUploads(@Nullable java.lang.Boolean uploads)voidsetUrlEnrichment(@Nullable java.lang.Boolean urlEnrichment)java.lang.StringtoString()static @NotNull ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequestupdate(@NotNull java.lang.String name)Creates an update request
-
-
-
Method Detail
-
create
@NotNull public static @NotNull ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequest create()
Creates an create request- Returns:
- the created request
-
get
@NotNull public static @NotNull ChannelType.ChannelTypeGetRequest get(java.lang.String name)
Creates a get request- Parameters:
name- the channel type name- Returns:
- the created request
-
update
@NotNull public static @NotNull ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequest update(@NotNull @NotNull java.lang.String name)
Creates an update request- Parameters:
name- the name of the channel type to update- Returns:
- the created request
-
delete
@NotNull public static @NotNull ChannelType.ChannelTypeDeleteRequest delete(java.lang.String name)
Creates a delete request- Parameters:
name- the channel type name- Returns:
- the created request
-
list
@NotNull public static @NotNull ChannelType.ChannelTypeListRequest list() throws StreamException
Creates a list request- Returns:
- the channel types in a map
- Throws:
StreamException- when IO problem occurs or the stream API return an error
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getTypingEvents
@Nullable public @Nullable java.lang.Boolean getTypingEvents()
-
getReadEvents
@Nullable public @Nullable java.lang.Boolean getReadEvents()
-
getReminders
@Nullable public @Nullable java.lang.Boolean getReminders()
-
getConnectEvents
@Nullable public @Nullable java.lang.Boolean getConnectEvents()
-
getSearch
@Nullable public @Nullable java.lang.Boolean getSearch()
-
getReactions
@Nullable public @Nullable java.lang.Boolean getReactions()
-
getReplies
@Nullable public @Nullable java.lang.Boolean getReplies()
-
getQuotes
@Nullable public @Nullable java.lang.Boolean getQuotes()
-
getUploads
@Nullable public @Nullable java.lang.Boolean getUploads()
-
getUrlEnrichment
@Nullable public @Nullable java.lang.Boolean getUrlEnrichment()
-
getCustomEvents
@Nullable public @Nullable java.lang.Boolean getCustomEvents()
-
getMutes
@Nullable public @Nullable java.lang.Boolean getMutes()
-
getPushNotifications
@Nullable public @Nullable java.lang.Boolean getPushNotifications()
-
getMessageRetention
@Nullable public @Nullable java.lang.String getMessageRetention()
-
getMaxMessageLength
@Nullable public @Nullable java.lang.Integer getMaxMessageLength()
-
getMarkMessagesPending
@Nullable public @Nullable java.lang.Boolean getMarkMessagesPending()
-
getAutomod
@Nullable public @Nullable ChannelType.AutoMod getAutomod()
-
getAutomodBehavior
@Nullable public @Nullable ChannelType.AutoModBehavior getAutomodBehavior()
-
getCreatedAt
@Nullable public @Nullable java.util.Date getCreatedAt()
-
getUpdatedAt
@Nullable public @Nullable java.util.Date getUpdatedAt()
-
getBlocklist
@Nullable public @Nullable java.lang.String getBlocklist()
-
getBlocklistBehavior
@Nullable public @Nullable ChannelType.BlocklistBehavior getBlocklistBehavior()
-
getAutomodThresholds
@Nullable public @Nullable java.util.Map<java.lang.String,ChannelType.Threshold> getAutomodThresholds()
-
getRoles
@Nullable public @Nullable java.util.Map<java.lang.String,java.util.List<ChannelType.Right>> getRoles()
-
getPermissions
@Nullable public @Nullable java.util.List<ChannelType.Policy> getPermissions()
-
getGrants
@Nullable public @Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>> getGrants()
-
getCountMessages
@Nullable public @Nullable java.lang.Boolean getCountMessages()
-
setName
public void setName(@NotNull @NotNull java.lang.String name)
-
setTypingEvents
public void setTypingEvents(@Nullable @Nullable java.lang.Boolean typingEvents)
-
setReadEvents
public void setReadEvents(@Nullable @Nullable java.lang.Boolean readEvents)
-
setReminders
public void setReminders(@Nullable @Nullable java.lang.Boolean reminders)
-
setConnectEvents
public void setConnectEvents(@Nullable @Nullable java.lang.Boolean connectEvents)
-
setSearch
public void setSearch(@Nullable @Nullable java.lang.Boolean search)
-
setReactions
public void setReactions(@Nullable @Nullable java.lang.Boolean reactions)
-
setReplies
public void setReplies(@Nullable @Nullable java.lang.Boolean replies)
-
setQuotes
public void setQuotes(@Nullable @Nullable java.lang.Boolean quotes)
-
setUploads
public void setUploads(@Nullable @Nullable java.lang.Boolean uploads)
-
setUrlEnrichment
public void setUrlEnrichment(@Nullable @Nullable java.lang.Boolean urlEnrichment)
-
setCustomEvents
public void setCustomEvents(@Nullable @Nullable java.lang.Boolean customEvents)
-
setMutes
public void setMutes(@Nullable @Nullable java.lang.Boolean mutes)
-
setPushNotifications
public void setPushNotifications(@Nullable @Nullable java.lang.Boolean pushNotifications)
-
setMessageRetention
public void setMessageRetention(@Nullable @Nullable java.lang.String messageRetention)
-
setMaxMessageLength
public void setMaxMessageLength(@Nullable @Nullable java.lang.Integer maxMessageLength)
-
setMarkMessagesPending
public void setMarkMessagesPending(@Nullable @Nullable java.lang.Boolean markMessagesPending)
-
setAutomod
public void setAutomod(@Nullable @Nullable ChannelType.AutoMod automod)
-
setAutomodBehavior
public void setAutomodBehavior(@Nullable @Nullable ChannelType.AutoModBehavior automodBehavior)
-
setCreatedAt
public void setCreatedAt(@Nullable @Nullable java.util.Date createdAt)
-
setUpdatedAt
public void setUpdatedAt(@Nullable @Nullable java.util.Date updatedAt)
-
setBlocklist
public void setBlocklist(@Nullable @Nullable java.lang.String blocklist)
-
setBlocklistBehavior
public void setBlocklistBehavior(@Nullable @Nullable ChannelType.BlocklistBehavior blocklistBehavior)
-
setAutomodThresholds
public void setAutomodThresholds(@Nullable @Nullable java.util.Map<java.lang.String,ChannelType.Threshold> automodThresholds)
-
setRoles
public void setRoles(@Nullable @Nullable java.util.Map<java.lang.String,java.util.List<ChannelType.Right>> roles)
-
setPermissions
public void setPermissions(@Nullable @Nullable java.util.List<ChannelType.Policy> permissions)
-
setGrants
public void setGrants(@Nullable @Nullable java.util.Map<java.lang.String,java.util.List<java.lang.String>> grants)
-
setCountMessages
public void setCountMessages(@Nullable @Nullable java.lang.Boolean countMessages)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-