Exemplo n.º 1
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="options"> Delete RoomRecording parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of RoomRecording </returns>
        public static bool Delete(DeleteRoomRecordingOptions options, ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = client.Request(BuildDeleteRequest(options, client));

            return(response.StatusCode == System.Net.HttpStatusCode.NoContent);
        }
Exemplo n.º 2
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathRoomSid"> The SID of the room with the RoomRecording resource to delete </param>
        /// <param name="pathSid"> The SID that identifies the resource to delete </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of RoomRecording </returns>
        public static async System.Threading.Tasks.Task <bool> DeleteAsync(string pathRoomSid,
                                                                           string pathSid,
                                                                           ITwilioRestClient client = null)
        {
            var options = new DeleteRoomRecordingOptions(pathRoomSid, pathSid);

            return(await DeleteAsync(options, client));
        }
Exemplo n.º 3
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="options"> Delete RoomRecording parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of RoomRecording </returns>
        public static async System.Threading.Tasks.Task <bool> DeleteAsync(DeleteRoomRecordingOptions options,
                                                                           ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildDeleteRequest(options, client));

            return(response.StatusCode == System.Net.HttpStatusCode.NoContent);
        }
 private static Request BuildDeleteRequest(DeleteRoomRecordingOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Delete,
                Rest.Domain.Video,
                "/v1/Rooms/" + options.PathRoomSid + "/Recordings/" + options.PathSid + "",
                queryParams: options.GetParams()
                ));
 }
Exemplo n.º 5
0
        /// <summary>
        /// delete
        /// </summary>
        /// <param name="pathRoomSid"> The SID of the room with the RoomRecording resource to delete </param>
        /// <param name="pathSid"> The SID that identifies the resource to delete </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of RoomRecording </returns>
        public static bool Delete(string pathRoomSid, string pathSid, ITwilioRestClient client = null)
        {
            var options = new DeleteRoomRecordingOptions(pathRoomSid, pathSid);

            return(Delete(options, client));
        }