Exemplo n.º 1
0
 /// <summary>
 /// Construct a new UpdateVerificationOptions
 /// </summary>
 /// <param name="pathServiceSid"> Service Sid. </param>
 /// <param name="pathSid"> A string that uniquely identifies this Verification. </param>
 /// <param name="status"> New status to set for the Verification. </param>
 public UpdateVerificationOptions(string pathServiceSid, string pathSid, VerificationResource.StatusEnum status)
 {
     PathServiceSid = pathServiceSid;
     PathSid        = pathSid;
     Status         = status;
 }
        /// <summary>
        /// Update a Verification status
        /// </summary>
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathSid"> A string that uniquely identifies this Verification. </param>
        /// <param name="status"> New status to set for the Verification. </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Verification </returns>
        public static async System.Threading.Tasks.Task <VerificationResource> UpdateAsync(string pathServiceSid,
                                                                                           string pathSid,
                                                                                           VerificationResource.StatusEnum status,
                                                                                           ITwilioRestClient client = null)
        {
            var options = new UpdateVerificationOptions(pathServiceSid, pathSid, status);

            return(await UpdateAsync(options, client));
        }