/// <summary>
 /// Initializes a new instance of the <see cref="CreateCallbackCommand" /> class.
 /// </summary>
 /// <param name="ScriptId">The identifier of the script to be used for the callback.</param>
 /// <param name="QueueId">The identifier of the queue to be used for the callback. Either queueId or routingData is required..</param>
 /// <param name="RoutingData">The routing data to be used for the callback. Either queueId or routingData is required..</param>
 /// <param name="CallbackUserName">The name of the party to be called back..</param>
 /// <param name="CallbackNumbers">A list of phone numbers for the callback. (required).</param>
 /// <param name="CallbackScheduledTime">The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="CountryCode">The country code to be associated with the callback numbers..</param>
 /// <param name="ValidateCallbackNumbers">Whether or not to validate the callback numbers for phone number format..</param>
 /// <param name="Data">A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { \&quot;notes\&quot;: \&quot;ready to close the deal!\&quot;, \&quot;customerPreferredName\&quot;: \&quot;Doc\&quot; }.</param>
 public CreateCallbackCommand(string ScriptId = null, string QueueId = null, RoutingData RoutingData = null, string CallbackUserName = null, List <string> CallbackNumbers = null, DateTime?CallbackScheduledTime = null, string CountryCode = null, bool?ValidateCallbackNumbers = null, Dictionary <string, string> Data = null)
 {
     this.ScriptId                = ScriptId;
     this.QueueId                 = QueueId;
     this.RoutingData             = RoutingData;
     this.CallbackUserName        = CallbackUserName;
     this.CallbackNumbers         = CallbackNumbers;
     this.CallbackScheduledTime   = CallbackScheduledTime;
     this.CountryCode             = CountryCode;
     this.ValidateCallbackNumbers = ValidateCallbackNumbers;
     this.Data = Data;
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateCallbackCommand" /> class.
        /// </summary>


        /// <param name="ScriptId">The identifier of the script to be used for the callback.</param>



        /// <param name="QueueId">The identifier of the queue to be used for the callback. Either queueId or routingData is required..</param>



        /// <param name="RoutingData">The routing data to be used for the callback. Either queueId or routingData is required..</param>



        /// <param name="CallbackUserName">The name of the party to be called back..</param>



        /// <param name="CallbackNumbers">A list of phone numbers for the callback. (required).</param>



        /// <param name="CallbackScheduledTime">The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="CountryCode">The country code to be associated with the callback numbers..</param>



        /// <param name="Data">A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { \&quot;notes\&quot;: \&quot;ready to close the deal!\&quot;, \&quot;customerPreferredName\&quot;: \&quot;Doc\&quot; }.</param>


        public CreateCallbackCommand(string ScriptId = null, string QueueId = null, RoutingData RoutingData = null, string CallbackUserName = null, List <string> CallbackNumbers = null, DateTime?CallbackScheduledTime = null, string CountryCode = null, Dictionary <string, string> Data = null)
        {
            // to ensure "CallbackNumbers" is required (not null)
            if (CallbackNumbers == null)
            {
                throw new InvalidDataException("CallbackNumbers is a required property for CreateCallbackCommand and cannot be null");
            }
            else
            {
                this.CallbackNumbers = CallbackNumbers;
            }



            this.ScriptId = ScriptId;



            this.QueueId = QueueId;



            this.RoutingData = RoutingData;



            this.CallbackUserName = CallbackUserName;



            this.CallbackScheduledTime = CallbackScheduledTime;



            this.CountryCode = CountryCode;



            this.Data = Data;
        }