コード例 #1
0
        /// <summary>
        /// Update a specific Participant.
        /// </summary>
        ///
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathSessionSid"> Session Sid. </param>
        /// <param name="pathSid"> A string that uniquely identifies this Participant. </param>
        /// <param name="participantType"> The Participant Type of this Participant </param>
        /// <param name="identifier"> The phone number of this Participant. </param>
        /// <param name="friendlyName"> A human readable description of this resource. </param>
        /// <param name="proxyIdentifier"> The proxy phone number for this Participant. </param>
        /// <param name="proxyIdentifierSid"> Proxy Identifier Sid. </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 pathServiceSid, string pathSessionSid, string pathSid, ParticipantResource.ParticipantTypeEnum participantType = null, string identifier = null, string friendlyName = null, string proxyIdentifier = null, string proxyIdentifierSid = null, ITwilioRestClient client = null)
        {
            var options = new UpdateParticipantOptions(pathServiceSid, pathSessionSid, pathSid)
            {
                ParticipantType = participantType, Identifier = identifier, FriendlyName = friendlyName, ProxyIdentifier = proxyIdentifier, ProxyIdentifierSid = proxyIdentifierSid
            };

            return(await UpdateAsync(options, client));
        }
コード例 #2
0
        /// <summary>
        /// Retrieve a list of all Participants in a Session.
        /// </summary>
        ///
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathSessionSid"> Session Sid. </param>
        /// <param name="participantType"> The participant_type </param>
        /// <param name="identifier"> The identifier </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 Participant </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <ParticipantResource> > ReadAsync(string pathServiceSid, string pathSessionSid, ParticipantResource.ParticipantTypeEnum participantType = null, string identifier = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null)
        {
            var options = new ReadParticipantOptions(pathServiceSid, pathSessionSid)
            {
                ParticipantType = participantType, Identifier = identifier, PageSize = pageSize, Limit = limit
            };

            return(await ReadAsync(options, client));
        }
コード例 #3
0
        /// <summary>
        /// Update a specific Participant.
        /// </summary>
        ///
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathSessionSid"> Session Sid. </param>
        /// <param name="pathSid"> A string that uniquely identifies this Participant. </param>
        /// <param name="participantType"> The Participant Type of this Participant </param>
        /// <param name="identifier"> The phone number of this Participant. </param>
        /// <param name="friendlyName"> A human readable description of this resource. </param>
        /// <param name="proxyIdentifier"> The proxy phone number for this Participant. </param>
        /// <param name="proxyIdentifierSid"> Proxy Identifier Sid. </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Participant </returns>
        public static ParticipantResource Update(string pathServiceSid, string pathSessionSid, string pathSid, ParticipantResource.ParticipantTypeEnum participantType = null, string identifier = null, string friendlyName = null, string proxyIdentifier = null, string proxyIdentifierSid = null, ITwilioRestClient client = null)
        {
            var options = new UpdateParticipantOptions(pathServiceSid, pathSessionSid, pathSid)
            {
                ParticipantType = participantType, Identifier = identifier, FriendlyName = friendlyName, ProxyIdentifier = proxyIdentifier, ProxyIdentifierSid = proxyIdentifierSid
            };

            return(Update(options, client));
        }
コード例 #4
0
        /// <summary>
        /// Retrieve a list of all Participants in a Session.
        /// </summary>
        ///
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathSessionSid"> Session Sid. </param>
        /// <param name="participantType"> The participant_type </param>
        /// <param name="identifier"> The identifier </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 pathServiceSid, string pathSessionSid, ParticipantResource.ParticipantTypeEnum participantType = null, string identifier = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null)
        {
            var options = new ReadParticipantOptions(pathServiceSid, pathSessionSid)
            {
                ParticipantType = participantType, Identifier = identifier, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }