コード例 #1
0
        /// <summary>
        /// Changes the status of the recording to paused, stopped, or in-progress
        /// </summary>
        /// <param name="pathConferenceSid"> The conference_sid </param>
        /// <param name="pathSid"> The sid </param>
        /// <param name="status"> The status to change the recording to. </param>
        /// <param name="pathAccountSid"> The account_sid </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Recording </returns>
        public static RecordingResource Update(string pathConferenceSid,
                                               string pathSid,
                                               RecordingResource.StatusEnum status,
                                               string pathAccountSid    = null,
                                               ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathConferenceSid, pathSid, status)
            {
                PathAccountSid = pathAccountSid
            };

            return(Update(options, client));
        }
コード例 #2
0
 /// <summary>
 /// Construct a new UpdateRecordingOptions
 /// </summary>
 /// <param name="pathConferenceSid"> The conference_sid </param>
 /// <param name="pathSid"> The recording sid to update. (or use 'Twilio.CURRENT' instead of recording sid to reference
 ///               current active recording) </param>
 /// <param name="status"> The status to change the recording to. </param>
 public UpdateRecordingOptions(string pathConferenceSid, string pathSid, RecordingResource.StatusEnum status)
 {
     PathConferenceSid = pathConferenceSid;
     PathSid           = pathSid;
     Status            = status;
 }
コード例 #3
0
        /// <summary>
        /// Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as
        /// recording sid.
        /// </summary>
        /// <param name="pathConferenceSid"> Update by unique Conference SID for the recording </param>
        /// <param name="pathSid"> The unique string that identifies the resource </param>
        /// <param name="status"> The new status of the recording </param>
        /// <param name="pathAccountSid"> The SID of the Account that created the resource to update </param>
        /// <param name="pauseBehavior"> Whether to record during a pause </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Recording </returns>
        public static async System.Threading.Tasks.Task <RecordingResource> UpdateAsync(string pathConferenceSid,
                                                                                        string pathSid,
                                                                                        RecordingResource.StatusEnum status,
                                                                                        string pathAccountSid    = null,
                                                                                        string pauseBehavior     = null,
                                                                                        ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathConferenceSid, pathSid, status)
            {
                PathAccountSid = pathAccountSid, PauseBehavior = pauseBehavior
            };

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