Exemple #1
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathRoomSid"> The SID of the room with the participant to update </param>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="status"> The new status of the resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Participant </returns>
        public static ParticipantResource Update(string pathRoomSid,
                                                 string pathSid,
                                                 ParticipantResource.StatusEnum status = null,
                                                 ITwilioRestClient client = null)
        {
            var options = new UpdateParticipantOptions(pathRoomSid, pathSid)
            {
                Status = status
            };

            return(Update(options, client));
        }
Exemple #2
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathRoomSid"> The SID of the room with the Participant resources to read </param>
        /// <param name="status"> Read only the participants with this status </param>
        /// <param name="identity"> Read only the Participants with this user identity value </param>
        /// <param name="dateCreatedAfter"> Read only Participants that started after this date in UTC ISO 8601 format </param>
        /// <param name="dateCreatedBefore"> Read only Participants that started before this date in ISO 8601 format </param>
        /// <param name="pageSize"> Page size </param>
        /// <param name="limit"> Record limit </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Participant </returns>
        public static ResourceSet <ParticipantResource> Read(string pathRoomSid,
                                                             ParticipantResource.StatusEnum status = null,
                                                             string identity            = null,
                                                             DateTime?dateCreatedAfter  = null,
                                                             DateTime?dateCreatedBefore = null,
                                                             int?pageSize             = null,
                                                             long?limit               = null,
                                                             ITwilioRestClient client = null)
        {
            var options = new ReadParticipantOptions(pathRoomSid)
            {
                Status = status, Identity = identity, DateCreatedAfter = dateCreatedAfter, DateCreatedBefore = dateCreatedBefore, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
Exemple #3
0
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathRoomSid"> The SID of the room with the participant to update </param>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="status"> The new status of the resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Participant </returns>
        public static async System.Threading.Tasks.Task <ParticipantResource> UpdateAsync(string pathRoomSid,
                                                                                          string pathSid,
                                                                                          ParticipantResource.StatusEnum status = null,
                                                                                          ITwilioRestClient client = null)
        {
            var options = new UpdateParticipantOptions(pathRoomSid, pathSid)
            {
                Status = status
            };

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