/// <summary> /// Initializes a new instance of the <see cref="SendAgentlessOutboundMessageResponse" /> class. /// </summary> /// <param name="ConversationId">The identifier of the conversation..</param> /// <param name="FromAddress">The sender of the message..</param> /// <param name="ToAddress">The recipient of the message..</param> /// <param name="MessengerType">Type of messenger..</param> /// <param name="TextBody">The body of the text message..</param> /// <param name="MessagingTemplate">The messaging template sent.</param> /// <param name="UseExistingActiveConversation">Use an existing active conversation to send the agentless outbound message. Set this parameter to 'true' to use active conversation. Default value: false.</param> /// <param name="Timestamp">The time when the message was sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> public SendAgentlessOutboundMessageResponse(string ConversationId = null, string FromAddress = null, string ToAddress = null, MessengerTypeEnum?MessengerType = null, string TextBody = null, MessagingTemplateRequest MessagingTemplate = null, bool?UseExistingActiveConversation = null, DateTime?Timestamp = null) { this.ConversationId = ConversationId; this.FromAddress = FromAddress; this.ToAddress = ToAddress; this.MessengerType = MessengerType; this.TextBody = TextBody; this.MessagingTemplate = MessagingTemplate; this.UseExistingActiveConversation = UseExistingActiveConversation; this.Timestamp = Timestamp; }
/// <summary> /// Initializes a new instance of the <see cref="SendAgentlessOutboundMessageRequest" /> class. /// </summary> /// <param name="FromAddress">The messaging address of the sender of the message. For an SMS messenger type, this must be a currently provisioned SMS phone number. For a WhatsApp messenger type use the provisioned WhatsApp integration’s ID (required).</param> /// <param name="ToAddress">The messaging address of the recipient of the message. For an SMS messenger type, the phone number address must be in E.164 format. E.g. +13175555555 or +34234234234. (required).</param> /// <param name="ToAddressMessengerType">The recipient messaging address messenger type. (required).</param> /// <param name="TextBody">The text of the message to send. This field is required in the case of SMS messenger type. Maximum character counts are: SMS - 765 characters, other channels - 2000 characters..</param> /// <param name="MessagingTemplate">The messaging template to use in the case of WhatsApp messenger type. This field is required when using WhatsApp messenger type.</param> /// <param name="UseExistingActiveConversation">Use an existing active conversation to send the agentless outbound message. Set this parameter to 'true' to use active conversation. Default value: false.</param> public SendAgentlessOutboundMessageRequest(string FromAddress = null, string ToAddress = null, ToAddressMessengerTypeEnum?ToAddressMessengerType = null, string TextBody = null, MessagingTemplateRequest MessagingTemplate = null, bool?UseExistingActiveConversation = null) { this.FromAddress = FromAddress; this.ToAddress = ToAddress; this.ToAddressMessengerType = ToAddressMessengerType; this.TextBody = TextBody; this.MessagingTemplate = MessagingTemplate; this.UseExistingActiveConversation = UseExistingActiveConversation; }
/// <summary> /// Initializes a new instance of the <see cref="AdditionalMessage" /> class. /// </summary> /// <param name="TextBody">The body of the text message. Maximum character counts are: SMS - 765 characters, other channels - 2000 characters. (required).</param> /// <param name="MediaIds">The media ids associated with the text message. See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage..</param> /// <param name="StickerIds">The sticker ids associated with the text message..</param> /// <param name="MessagingTemplate">The messaging template use to send a predefined canned response with the message.</param> public AdditionalMessage(string TextBody = null, List <string> MediaIds = null, List <string> StickerIds = null, MessagingTemplateRequest MessagingTemplate = null) { this.TextBody = TextBody; this.MediaIds = MediaIds; this.StickerIds = StickerIds; this.MessagingTemplate = MessagingTemplate; }