Esempio n. 1
0
        /// <summary>
        /// Changes the status of the recording to paused, stopped, or in-progress
        /// </summary>
        /// <param name="pathCallSid"> The call_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 pathCallSid,
                                               string pathSid,
                                               RecordingResource.StatusEnum status,
                                               string pathAccountSid    = null,
                                               ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathCallSid, pathSid, status)
            {
                PathAccountSid = pathAccountSid
            };

            return(Update(options, client));
        }
 /// <summary>
 /// Construct a new UpdateRecordingOptions
 /// </summary>
 /// <param name="pathCallSid"> The Call SID of the resource(s) to update </param>
 /// <param name="pathSid"> The unique string that identifies this resource </param>
 /// <param name="status"> The new status of the recording </param>
 public UpdateRecordingOptions(string pathCallSid, string pathSid, RecordingResource.StatusEnum status)
 {
     PathCallSid = pathCallSid;
     PathSid     = pathSid;
     Status      = status;
 }
Esempio n. 3
0
        /// <summary>
        /// Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of
        /// recording sid to reference current active recording.
        /// </summary>
        /// <param name="pathCallSid"> The Call SID of the resource(s) to update </param>
        /// <param name="pathSid"> The unique string that identifies this resource </param>
        /// <param name="status"> The new status of the recording </param>
        /// <param name="pathAccountSid"> The SID of the Account that created the resource(s) to update </param>
        /// <param name="pauseBehavior"> Whether to record or not during the pause period. </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 pathCallSid,
                                                                                        string pathSid,
                                                                                        RecordingResource.StatusEnum status,
                                                                                        string pathAccountSid    = null,
                                                                                        string pauseBehavior     = null,
                                                                                        ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathCallSid, pathSid, status)
            {
                PathAccountSid = pathAccountSid, PauseBehavior = pauseBehavior
            };

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