Ejemplo n.º 1
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathAssistantSid"> The unique ID of the parent Assistant. </param>
        /// <param name="pathSid"> A 34 character string that uniquely identifies this resource. </param>
        /// <param name="sampleSid"> An optional reference to the Sample created from this query. </param>
        /// <param name="status"> A string that described the query status. The values can be: pending_review, reviewed,
        ///              discarded </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Query </returns>
        public static async System.Threading.Tasks.Task <QueryResource> UpdateAsync(string pathAssistantSid,
                                                                                    string pathSid,
                                                                                    string sampleSid         = null,
                                                                                    string status            = null,
                                                                                    ITwilioRestClient client = null)
        {
            var options = new UpdateQueryOptions(pathAssistantSid, pathSid)
            {
                SampleSid = sampleSid, Status = status
            };

            return(await UpdateAsync(options, client));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathAssistantSid"> The unique ID of the parent Assistant. </param>
        /// <param name="pathSid"> A 34 character string that uniquely identifies this resource. </param>
        /// <param name="sampleSid"> An optional reference to the Sample created from this query. </param>
        /// <param name="status"> A string that described the query status. The values can be: pending_review, reviewed,
        ///              discarded </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Query </returns>
        public static QueryResource Update(string pathAssistantSid,
                                           string pathSid,
                                           string sampleSid         = null,
                                           string status            = null,
                                           ITwilioRestClient client = null)
        {
            var options = new UpdateQueryOptions(pathAssistantSid, pathSid)
            {
                SampleSid = sampleSid, Status = status
            };

            return(Update(options, client));
        }