Class ChatbotSendMessageOptions
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents the options used to send a message to a chatbot.
[ExcludeFromCodeCoverage]
[SuppressMessage("Minor Code Smell", "S2325:Methods and properties that don't access instance data should be static", Justification = "Stubs for transpilation.")]
public class ChatbotSendMessageOptions
- Inheritance
-
ChatbotSendMessageOptions
- Inherited Members
Constructors
ChatbotSendMessageOptions(string)
Initializes a new instance of the ChatbotSendMessageOptions class.
public ChatbotSendMessageOptions(string message)
Parameters
messagestringMessage to send.
Properties
AgentId
Gets the identifier of the agent the message is sent to.
public string? AgentId { get; }
Property Value
Remarks
When null, the agent currently selected in the chatbot is used.
Attachments
Gets the files attached to the message.
public FileReference[]? Attachments { get; }
Property Value
Message
Gets the message to send.
public string Message { get; }
Property Value
Methods
WithAgentId(string?)
Sets the identifier of the agent the message is sent to.
public ChatbotSendMessageOptions WithAgentId(string? agentId)
Parameters
agentIdstringAgent identifier.
Returns
- ChatbotSendMessageOptions
Options.
WithAttachments(FileReference[]?)
Sets the files attached to the message.
public ChatbotSendMessageOptions WithAttachments(FileReference[]? attachments)
Parameters
attachmentsFileReference[]Attachments.
Returns
- ChatbotSendMessageOptions
Options.