コード例 #1
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathAssistantSid"> The assistant_sid </param>
        /// <param name="pathSid"> The sid </param>
        /// <param name="sampleSid"> The sample_sid </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));
        }
コード例 #2
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathAssistantSid"> The SID of the Assistant that is the parent of the resource to update </param>
        /// <param name="pathSid"> The unique string that identifies the resource to update </param>
        /// <param name="sampleSid"> The SID of an optional reference to the Sample created from the query </param>
        /// <param name="status"> The new status of the resource </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));
        }