Exemplo n.º 1
0
        /// <summary>
        /// Updates a Customer-Profile in an account.
        /// </summary>
        /// <param name="pathSid"> The unique string that identifies the resource. </param>
        /// <param name="status"> The verification status of the Customer-Profile resource </param>
        /// <param name="statusCallback"> The URL we call to inform your application of status changes. </param>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="email"> The email address </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of TrustProducts </returns>
        public static TrustProductsResource Update(string pathSid,
                                                   TrustProductsResource.StatusEnum status = null,
                                                   Uri statusCallback       = null,
                                                   string friendlyName      = null,
                                                   string email             = null,
                                                   ITwilioRestClient client = null)
        {
            var options = new UpdateTrustProductsOptions(pathSid)
            {
                Status = status, StatusCallback = statusCallback, FriendlyName = friendlyName, Email = email
            };

            return(Update(options, client));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Retrieve a list of all Customer-Profiles for an account.
        /// </summary>
        /// <param name="status"> The verification status of the Customer-Profile resource </param>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="policySid"> The unique string of a policy. </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 TrustProducts </returns>
        public static ResourceSet <TrustProductsResource> Read(TrustProductsResource.StatusEnum status = null,
                                                               string friendlyName      = null,
                                                               string policySid         = null,
                                                               int?pageSize             = null,
                                                               long?limit               = null,
                                                               ITwilioRestClient client = null)
        {
            var options = new ReadTrustProductsOptions()
            {
                Status = status, FriendlyName = friendlyName, PolicySid = policySid, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Updates a Customer-Profile in an account.
        /// </summary>
        /// <param name="pathSid"> The unique string that identifies the resource. </param>
        /// <param name="status"> The verification status of the Customer-Profile resource </param>
        /// <param name="statusCallback"> The URL we call to inform your application of status changes. </param>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="email"> The email address </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of TrustProducts </returns>
        public static async System.Threading.Tasks.Task <TrustProductsResource> UpdateAsync(string pathSid,
                                                                                            TrustProductsResource.StatusEnum status = null,
                                                                                            Uri statusCallback       = null,
                                                                                            string friendlyName      = null,
                                                                                            string email             = null,
                                                                                            ITwilioRestClient client = null)
        {
            var options = new UpdateTrustProductsOptions(pathSid)
            {
                Status = status, StatusCallback = statusCallback, FriendlyName = friendlyName, Email = email
            };

            return(await UpdateAsync(options, client));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Retrieve a list of all Customer-Profiles for an account.
        /// </summary>
        /// <param name="status"> The verification status of the Customer-Profile resource </param>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="policySid"> The unique string of a policy. </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 TrustProducts </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <TrustProductsResource> > ReadAsync(TrustProductsResource.StatusEnum status = null,
                                                                                                         string friendlyName      = null,
                                                                                                         string policySid         = null,
                                                                                                         int?pageSize             = null,
                                                                                                         long?limit               = null,
                                                                                                         ITwilioRestClient client = null)
        {
            var options = new ReadTrustProductsOptions()
            {
                Status = status, FriendlyName = friendlyName, PolicySid = policySid, PageSize = pageSize, Limit = limit
            };

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