Пример #1
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="status"> Read only the rooms with this status </param>
        /// <param name="uniqueName"> Read only rooms with this unique_name </param>
        /// <param name="dateCreatedAfter"> Read only rooms that started on or after this date, given as YYYY-MM-DD </param>
        /// <param name="dateCreatedBefore"> Read only rooms that started before this date, given as YYYY-MM-DD </param>
        /// <param name="pageSize"> Page size </param>
        /// <param name="limit"> Record limit </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 <ResourceSet <RoomResource> > ReadAsync(RoomResource.RoomStatusEnum status = null,
                                                                                                string uniqueName          = null,
                                                                                                DateTime?dateCreatedAfter  = null,
                                                                                                DateTime?dateCreatedBefore = null,
                                                                                                int?pageSize             = null,
                                                                                                long?limit               = null,
                                                                                                ITwilioRestClient client = null)
        {
            var options = new ReadRoomOptions()
            {
                Status = status, UniqueName = uniqueName, DateCreatedAfter = dateCreatedAfter, DateCreatedBefore = dateCreatedBefore, PageSize = pageSize, Limit = limit
            };

            return(await ReadAsync(options, client));
        }
Пример #2
0
        /// <summary>
        /// update
        /// </summary>
        ///
        /// <param name="pathSid"> The sid </param>
        /// <param name="status"> The status </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Room </returns>
        public static RoomResource Update(string pathSid, RoomResource.RoomStatusEnum status, ITwilioRestClient client = null)
        {
            var options = new UpdateRoomOptions(pathSid, status);

            return(Update(options, client));
        }
Пример #3
0
        /// <summary>
        /// update
        /// </summary>
        ///
        /// <param name="pathSid"> The sid </param>
        /// <param name="status"> The status </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> UpdateAsync(string pathSid, RoomResource.RoomStatusEnum status, ITwilioRestClient client = null)
        {
            var options = new UpdateRoomOptions(pathSid, status);

            return(await UpdateAsync(options, client));
        }
Пример #4
0
 /// <summary>
 /// Construct a new UpdateRoomOptions
 /// </summary>
 /// <param name="pathSid"> The sid </param>
 /// <param name="status"> The status </param>
 public UpdateRoomOptions(string pathSid, RoomResource.RoomStatusEnum status)
 {
     PathSid = pathSid;
     Status  = status;
 }