Esempio n. 1
0
        /// <summary>
        /// Retrieves a collection of Accounts belonging to the account used to make the request
        /// </summary>
        ///
        /// <param name="friendlyName"> FriendlyName to filter on </param>
        /// <param name="status"> Status to filter on </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 Account </returns>
        public static ResourceSet <AccountResource> Read(string friendlyName = null, AccountResource.StatusEnum status = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null)
        {
            var options = new ReadAccountOptions {
                FriendlyName = friendlyName, Status = status, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
        /// <summary>
        /// Modify the properties of a given Account
        /// </summary>
        /// <param name="pathSid"> Update by unique Account Sid </param>
        /// <param name="friendlyName"> FriendlyName to update </param>
        /// <param name="status"> Status to update the Account with </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Account </returns>
        public static AccountResource Update(string pathSid      = null,
                                             string friendlyName = null,
                                             AccountResource.StatusEnum status = null,
                                             ITwilioRestClient client          = null)
        {
            var options = new UpdateAccountOptions()
            {
                PathSid = pathSid, FriendlyName = friendlyName, Status = status
            };

            return(Update(options, client));
        }
Esempio n. 3
0
        /// <summary>
        /// Modify the properties of a given Account
        /// </summary>
        ///
        /// <param name="pathSid"> The sid </param>
        /// <param name="friendlyName"> FriendlyName to update </param>
        /// <param name="status"> Status to update the Account with </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Account </returns>
        public static async System.Threading.Tasks.Task <AccountResource> UpdateAsync(string pathSid = null, string friendlyName = null, AccountResource.StatusEnum status = null, ITwilioRestClient client = null)
        {
            var options = new UpdateAccountOptions {
                PathSid = pathSid, FriendlyName = friendlyName, Status = status
            };

            return(await UpdateAsync(options, client));
        }
Esempio n. 4
0
        /// <summary>
        /// Retrieves a collection of Accounts belonging to the account used to make the request
        /// </summary>
        ///
        /// <param name="friendlyName"> FriendlyName to filter on </param>
        /// <param name="status"> Status to filter on </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 Account </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <AccountResource> > ReadAsync(string friendlyName = null, AccountResource.StatusEnum status = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null)
        {
            var options = new ReadAccountOptions {
                FriendlyName = friendlyName, Status = status, PageSize = pageSize, Limit = limit
            };

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