/// <summary>
        /// update
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="chatStatus"> The chat status </param>
        /// <param name="postEngagementData"> The post-engagement data </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of WebChannel </returns>
        public static WebChannelResource Update(string pathSid,
                                                WebChannelResource.ChatStatusEnum chatStatus = null,
                                                string postEngagementData = null,
                                                ITwilioRestClient client  = null)
        {
            var options = new UpdateWebChannelOptions(pathSid)
            {
                ChatStatus = chatStatus, PostEngagementData = postEngagementData
            };

            return(Update(options, client));
        }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="chatStatus"> The chat status </param>
        /// <param name="postEngagementData"> The post-engagement data </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of WebChannel </returns>
        public static async System.Threading.Tasks.Task <WebChannelResource> UpdateAsync(string pathSid,
                                                                                         WebChannelResource.ChatStatusEnum chatStatus = null,
                                                                                         string postEngagementData = null,
                                                                                         ITwilioRestClient client  = null)
        {
            var options = new UpdateWebChannelOptions(pathSid)
            {
                ChatStatus = chatStatus, PostEngagementData = postEngagementData
            };

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