Class Config
-
- All Implemented Interfaces:
@Immutable() public final class ConfigModel representing the configuration of a channel.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean deliveryEventsEnabled, 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, Boolean messageRemindersEnabled, Boolean sharedLocationsEnabled, Boolean markMessagesPending, String pushLevel)
-
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 BooleangetDeliveryEventsEnabled()Determines if events are fired for message deliveries. 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. final BooleangetMessageRemindersEnabled()Determines if message reminders are enabled. final BooleangetSharedLocationsEnabled()Determines if shared locations are enabled. final BooleangetMarkMessagesPending()If true, the messages sent in the channel will be marked as pending. final StringgetPushLevel()The default push notification level for the channel type. -
-
Constructor Detail
-
Config
Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean deliveryEventsEnabled, 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, Boolean messageRemindersEnabled, Boolean sharedLocationsEnabled, Boolean markMessagesPending, String pushLevel)
-
-
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.
-
getDeliveryEventsEnabled
final Boolean getDeliveryEventsEnabled()
Determines if events are fired for message deliveries. 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.
-
getMessageRemindersEnabled
final Boolean getMessageRemindersEnabled()
Determines if message reminders are enabled. Disabled by default.
-
getSharedLocationsEnabled
final Boolean getSharedLocationsEnabled()
Determines if shared locations are enabled. Disabled by default.
-
getMarkMessagesPending
final Boolean getMarkMessagesPending()
If true, the messages sent in the channel will be marked as pending.
-
getPushLevel
final String getPushLevel()
The default push notification level for the channel type. One of
"all","all_mentions","direct_mentions","none", or deprecated"mentions".
-
-
-
-