Package ai.tock.bot.engine.message
Class GenericMessage
-
- All Implemented Interfaces:
public final class GenericMessageAn aggregation of Messages used in Sentence. This is usually a "generic" view of ConnectorMessage.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringTITLE_PARAMpublic final static StringSUBTITLE_PARAMpublic final static StringTEXT_PARAMprivate final ConnectorTypeconnectorTypeprivate final List<Attachment>attachmentsprivate final List<Choice>choicesprivate final Map<String, String>textsprivate final List<Location>locationsprivate final Map<String, String>metadataprivate final List<GenericElement>subElements
-
Constructor Summary
Constructors Constructor Description GenericMessage(ConnectorMessage connectorMessage, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements)GenericMessage(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)
-
Method Summary
Modifier and Type Method Description final ConnectorTypegetConnectorType()final List<Attachment>getAttachments()final List<Choice>getChoices()final Map<String, String>getTexts()final List<Location>getLocations()final Map<String, String>getMetadata()final List<GenericElement>getSubElements()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
GenericMessage
GenericMessage(ConnectorMessage connectorMessage, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements)
-
GenericMessage
GenericMessage(ConnectorType connectorType, List<Attachment> attachments, List<Choice> choices, Map<String, String> texts, List<Location> locations, Map<String, String> metadata, List<GenericElement> subElements, ConnectorMessage connectorMessage)
-
-
Method Detail
-
getConnectorType
final ConnectorType getConnectorType()
-
getAttachments
final List<Attachment> getAttachments()
-
getChoices
final List<Choice> getChoices()
-
getLocations
final List<Location> getLocations()
-
getMetadata
final Map<String, String> getMetadata()
-
getSubElements
final List<GenericElement> getSubElements()
-
-
-
-