Пример #1
0
        /// <summary>
        /// create
        /// </summary>
        ///
        /// <param name="enableTurn"> The enable_turn </param>
        /// <param name="type"> The type </param>
        /// <param name="uniqueName"> The unique_name </param>
        /// <param name="statusCallback"> The status_callback </param>
        /// <param name="statusCallbackMethod"> The status_callback_method </param>
        /// <param name="maxParticipants"> The max_participants </param>
        /// <param name="recordParticipantsOnConnect"> The record_participants_on_connect </param>
        /// <param name="videoCodecs"> The video_codecs </param>
        /// <param name="mediaRegion"> The media_region </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Room </returns>
        public static RoomResource Create(bool?enableTurn = null, RoomResource.RoomTypeEnum type = null, string uniqueName = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, int?maxParticipants = null, bool?recordParticipantsOnConnect = null, List <RoomResource.VideoCodecEnum> videoCodecs = null, string mediaRegion = null, ITwilioRestClient client = null)
        {
            var options = new CreateRoomOptions {
                EnableTurn = enableTurn, Type = type, UniqueName = uniqueName, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, MaxParticipants = maxParticipants, RecordParticipantsOnConnect = recordParticipantsOnConnect, VideoCodecs = videoCodecs, MediaRegion = mediaRegion
            };

            return(Create(options, client));
        }
Пример #2
0
        /// <summary>
        /// create
        /// </summary>
        ///
        /// <param name="enableTurn"> The enable_turn </param>
        /// <param name="type"> The type </param>
        /// <param name="uniqueName"> The unique_name </param>
        /// <param name="statusCallback"> The status_callback </param>
        /// <param name="statusCallbackMethod"> The status_callback_method </param>
        /// <param name="maxParticipants"> The max_participants </param>
        /// <param name="recordParticipantsOnConnect"> The record_participants_on_connect </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Room </returns>
        public static async System.Threading.Tasks.Task <RoomResource> CreateAsync(bool?enableTurn = null, RoomResource.RoomTypeEnum type = null, string uniqueName = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, int?maxParticipants = null, bool?recordParticipantsOnConnect = null, ITwilioRestClient client = null)
        {
            var options = new CreateRoomOptions {
                EnableTurn = enableTurn, Type = type, UniqueName = uniqueName, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, MaxParticipants = maxParticipants, RecordParticipantsOnConnect = recordParticipantsOnConnect
            };

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