Class Config
-
- All Implemented Interfaces:
@Immutable() public final class ConfigModel representing the configuration of a channel.
-
-
Field Summary
Fields Modifier and Type Field Description private final DatecreatedAtprivate final DateupdatedAtprivate final Stringnameprivate final BooleantypingEventsEnabledprivate final BooleanreadEventsEnabledprivate final BooleanconnectEventsEnabledprivate final BooleansearchEnabledprivate final BooleanisReactionsEnabledprivate final BooleanisThreadEnabledprivate final BooleanmuteEnabledprivate final BooleanuploadsEnabledprivate final BooleanurlEnrichmentEnabledprivate final BooleancustomEventsEnabledprivate final BooleanpushNotificationsEnabledprivate final BooleanskipLastMsgUpdateForSystemMsgsprivate final BooleanpollsEnabledprivate final StringmessageRetentionprivate final IntegermaxMessageLengthprivate final Stringautomodprivate final StringautomodBehaviorprivate final StringblocklistBehaviorprivate final List<Command>commands
-
Constructor Summary
Constructors Constructor Description Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean connectEventsEnabled, Boolean searchEnabled, Boolean isReactionsEnabled, Boolean isThreadEnabled, Boolean muteEnabled, Boolean uploadsEnabled, Boolean urlEnrichmentEnabled, Boolean customEventsEnabled, Boolean pushNotificationsEnabled, Boolean skipLastMsgUpdateForSystemMsgs, Boolean pollsEnabled, String messageRetention, Integer maxMessageLength, String automod, String automodBehavior, String blocklistBehavior, List<Command> commands)
-
Method Summary
Modifier and Type Method Description final DategetCreatedAt()Date of channel creation. final DategetUpdatedAt()Date of last channel update. final StringgetName()The name of the channel type must be unique per application final BooleangetTypingEventsEnabled()Controls if typing indicators are shown. final BooleangetReadEventsEnabled()Controls whether the chat shows how far you’ve read. final BooleangetConnectEventsEnabled()Determines if events are fired for connecting and disconnecting to a chat. final BooleangetSearchEnabled()Controls if messages should be searchable (this is a premium feature). final BooleanisReactionsEnabled()If users are allowed to add reactions to messages. final BooleanisThreadEnabled()Enables message threads. final BooleangetMuteEnabled()Determines if users are able to mute other users. final BooleangetUploadsEnabled()Allows image and file uploads within messages. final BooleangetUrlEnrichmentEnabled()Determines if URL enrichment enabled to show they as attachments. final BooleangetCustomEventsEnabled()Determines if custom events are enabled. final BooleangetPushNotificationsEnabled()Determines if push notifications are enabled. final BooleangetSkipLastMsgUpdateForSystemMsgs()Determines if the last message update should be skipped for system messages. final BooleangetPollsEnabled()Determines if polls are enabled. final StringgetMessageRetention()A number of days or infinite. final IntegergetMaxMessageLength()The max message length. final StringgetAutomod()Disabled, simple or AI are valid options for the Automod. final StringgetAutomodBehavior()Represents the automod behaviour. final StringgetBlocklistBehavior()Represents the blocklist behaviour. final List<Command>getCommands()The commands that are available on this channel type, e.g. -
-
Constructor Detail
-
Config
Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean connectEventsEnabled, Boolean searchEnabled, Boolean isReactionsEnabled, Boolean isThreadEnabled, Boolean muteEnabled, Boolean uploadsEnabled, Boolean urlEnrichmentEnabled, Boolean customEventsEnabled, Boolean pushNotificationsEnabled, Boolean skipLastMsgUpdateForSystemMsgs, Boolean pollsEnabled, String messageRetention, Integer maxMessageLength, String automod, String automodBehavior, String blocklistBehavior, List<Command> commands)
-
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
Date of channel creation.
-
getUpdatedAt
final Date getUpdatedAt()
Date of last channel update.
-
getTypingEventsEnabled
final Boolean getTypingEventsEnabled()
Controls if typing indicators are shown. Enabled by default.
-
getReadEventsEnabled
final Boolean getReadEventsEnabled()
Controls whether the chat shows how far you’ve read. Enabled by default.
-
getConnectEventsEnabled
final Boolean getConnectEventsEnabled()
Determines if events are fired for connecting and disconnecting to a chat. Enabled by default.
-
getSearchEnabled
final Boolean getSearchEnabled()
Controls if messages should be searchable (this is a premium feature). Disabled by default.
-
isReactionsEnabled
final Boolean isReactionsEnabled()
If users are allowed to add reactions to messages. Enabled by default.
-
isThreadEnabled
final Boolean isThreadEnabled()
Enables message threads. Enabled by default.
-
getMuteEnabled
final Boolean getMuteEnabled()
Determines if users are able to mute other users. Enabled by default.
-
getUploadsEnabled
final Boolean getUploadsEnabled()
Allows image and file uploads within messages. Enabled by default.
-
getUrlEnrichmentEnabled
final Boolean getUrlEnrichmentEnabled()
Determines if URL enrichment enabled to show they as attachments. Enabled by default.
-
getCustomEventsEnabled
final Boolean getCustomEventsEnabled()
Determines if custom events are enabled. Disabled by default.
-
getPushNotificationsEnabled
final Boolean getPushNotificationsEnabled()
Determines if push notifications are enabled. Enabled by default.
-
getSkipLastMsgUpdateForSystemMsgs
final Boolean getSkipLastMsgUpdateForSystemMsgs()
Determines if the last message update should be skipped for system messages. Disabled by default.
-
getPollsEnabled
final Boolean getPollsEnabled()
Determines if polls are enabled. Disabled by default.
-
getMessageRetention
final String getMessageRetention()
A number of days or infinite. "Infinite" by default.
-
getMaxMessageLength
final Integer getMaxMessageLength()
The max message length. 5000 by default.
-
getAutomod
final String getAutomod()
Disabled, simple or AI are valid options for the Automod. AI based moderation is a premium feature.
-
getAutomodBehavior
final String getAutomodBehavior()
Represents the automod behaviour.
-
getBlocklistBehavior
final String getBlocklistBehavior()
Represents the blocklist behaviour.
-
getCommands
final List<Command> getCommands()
The commands that are available on this channel type, e.g. /giphy.
-
-
-
-