Example #1
0
        /// <summary>
        /// Updates a Bundle in an account.
        /// </summary>
        /// <param name="pathSid"> The unique string that identifies the resource. </param>
        /// <param name="status"> The verification status of the Bundle 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 Bundle </returns>
        public static BundleResource Update(string pathSid,
                                            BundleResource.StatusEnum status = null,
                                            Uri statusCallback       = null,
                                            string friendlyName      = null,
                                            string email             = null,
                                            ITwilioRestClient client = null)
        {
            var options = new UpdateBundleOptions(pathSid)
            {
                Status = status, StatusCallback = statusCallback, FriendlyName = friendlyName, Email = email
            };

            return(Update(options, client));
        }
Example #2
0
        /// <summary>
        /// Updates a Bundle in an account.
        /// </summary>
        /// <param name="pathSid"> The unique string that identifies the resource. </param>
        /// <param name="status"> The verification status of the Bundle 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 Bundle </returns>
        public static async System.Threading.Tasks.Task <BundleResource> UpdateAsync(string pathSid,
                                                                                     BundleResource.StatusEnum status = null,
                                                                                     Uri statusCallback       = null,
                                                                                     string friendlyName      = null,
                                                                                     string email             = null,
                                                                                     ITwilioRestClient client = null)
        {
            var options = new UpdateBundleOptions(pathSid)
            {
                Status = status, StatusCallback = statusCallback, FriendlyName = friendlyName, Email = email
            };

            return(await UpdateAsync(options, client));
        }
Example #3
0
        /// <summary>
        /// Retrieve a list of all Bundles for an account.
        /// </summary>
        /// <param name="status"> The verification status of the Bundle resource </param>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="regulationSid"> The unique string of a regulation. </param>
        /// <param name="isoCountry"> The ISO country code of the country </param>
        /// <param name="numberType"> The type of phone number </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 Bundle </returns>
        public static ResourceSet <BundleResource> Read(BundleResource.StatusEnum status = null,
                                                        string friendlyName      = null,
                                                        string regulationSid     = null,
                                                        string isoCountry        = null,
                                                        string numberType        = null,
                                                        int?pageSize             = null,
                                                        long?limit               = null,
                                                        ITwilioRestClient client = null)
        {
            var options = new ReadBundleOptions()
            {
                Status = status, FriendlyName = friendlyName, RegulationSid = regulationSid, IsoCountry = isoCountry, NumberType = numberType, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }