Class MessageComposerState
-
- All Implemented Interfaces:
public final class MessageComposerStateRepresents the state within the message input.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringinputValueprivate final List<Attachment>attachmentsprivate final MessageActionactionprivate final List<ValidationError>validationErrorsprivate final List<User>mentionSuggestionsprivate final List<Command>commandSuggestionsprivate final List<LinkPreview>linkPreviewsprivate final IntegercoolDownTimeprivate final MessageModemessageModeprivate final BooleanalsoSendToChannelprivate final Set<String>ownCapabilitiesprivate final BooleanhasCommandsprivate final UsercurrentUserprivate final RecordingStaterecording
-
Constructor Summary
Constructors Constructor Description MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands, User currentUser, RecordingState recording)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands, User currentUser)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors)MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action)MessageComposerState(String inputValue, List<Attachment> attachments)MessageComposerState(String inputValue)MessageComposerState()
-
Method Summary
Modifier and Type Method Description final StringgetInputValue()final List<Attachment>getAttachments()final MessageActiongetAction()final List<ValidationError>getValidationErrors()final List<User>getMentionSuggestions()final List<Command>getCommandSuggestions()final List<LinkPreview>getLinkPreviews()final IntegergetCoolDownTime()final MessageModegetMessageMode()final BooleangetAlsoSendToChannel()final Set<String>getOwnCapabilities()final BooleangetHasCommands()final UsergetCurrentUser()final RecordingStategetRecording()-
-
Constructor Detail
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands, User currentUser, RecordingState recording)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.alsoSendToChannel- If the message will be shown in the channel after it is sent.ownCapabilities- Set of capabilities the user is given for the current channel.hasCommands- Whether there are any commands available.currentUser- The currently logged in user.recording- The current recording state.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands, User currentUser)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.alsoSendToChannel- If the message will be shown in the channel after it is sent.ownCapabilities- Set of capabilities the user is given for the current channel.hasCommands- Whether there are any commands available.currentUser- The currently logged in user.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities, Boolean hasCommands)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.alsoSendToChannel- If the message will be shown in the channel after it is sent.ownCapabilities- Set of capabilities the user is given for the current channel.hasCommands- Whether there are any commands available.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel, Set<String> ownCapabilities)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.alsoSendToChannel- If the message will be shown in the channel after it is sent.ownCapabilities- Set of capabilities the user is given for the current channel.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode, Boolean alsoSendToChannel)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.alsoSendToChannel- If the message will be shown in the channel after it is sent.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime, MessageMode messageMode)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.messageMode- The message mode that's currently active.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews, Integer coolDownTime)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.coolDownTime- The amount of time left until the user is allowed to send the next message.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions, List<LinkPreview> linkPreviews)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.linkPreviews- The list of links found in inputValue to be previewed.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions, List<Command> commandSuggestions)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.commandSuggestions- The list of commands to be displayed in the command suggestion popup.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors, List<User> mentionSuggestions)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.mentionSuggestions- The list of users that can be used to autocomplete the mention.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action, List<ValidationError> validationErrors)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.validationErrors- The list of validation errors.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments, MessageAction action)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.action- The currently active MessageAction.
-
MessageComposerState
MessageComposerState(String inputValue, List<Attachment> attachments)
- Parameters:
inputValue- The current text value that's within the input.attachments- The currently selected attachments.
-
MessageComposerState
MessageComposerState(String inputValue)
- Parameters:
inputValue- The current text value that's within the input.
-
MessageComposerState
MessageComposerState()
-
-
Method Detail
-
getInputValue
final String getInputValue()
-
getAttachments
final List<Attachment> getAttachments()
-
getAction
final MessageAction getAction()
-
getValidationErrors
final List<ValidationError> getValidationErrors()
-
getMentionSuggestions
final List<User> getMentionSuggestions()
-
getCommandSuggestions
final List<Command> getCommandSuggestions()
-
getLinkPreviews
final List<LinkPreview> getLinkPreviews()
-
getCoolDownTime
final Integer getCoolDownTime()
-
getMessageMode
final MessageMode getMessageMode()
-
getAlsoSendToChannel
final Boolean getAlsoSendToChannel()
-
getOwnCapabilities
final Set<String> getOwnCapabilities()
-
getHasCommands
final Boolean getHasCommands()
-
getCurrentUser
final User getCurrentUser()
-
getRecording
final RecordingState getRecording()
-
-
-
-