예제 #1
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathAccountSid"> The account_sid </param>
        /// <param name="category"> The category </param>
        /// <param name="startDate"> The start_date </param>
        /// <param name="endDate"> The end_date </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 ThisMonth </returns>
        public static ResourceSet <ThisMonthResource> Read(string pathAccountSid = null,
                                                           ThisMonthResource.CategoryEnum category = null,
                                                           DateTime?startDate       = null,
                                                           DateTime?endDate         = null,
                                                           int?pageSize             = null,
                                                           long?limit               = null,
                                                           ITwilioRestClient client = null)
        {
            var options = new ReadThisMonthOptions()
            {
                PathAccountSid = pathAccountSid, Category = category, StartDate = startDate, EndDate = endDate, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
예제 #2
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathAccountSid"> The account_sid </param>
        /// <param name="category"> Only include usage of this usage category. </param>
        /// <param name="startDate"> Only include usage that has occurred on or after this date. </param>
        /// <param name="endDate"> Only include usage that has occurred on or before this date. </param>
        /// <param name="includeSubaccounts"> The include_subaccounts </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 ThisMonth </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <ThisMonthResource> > ReadAsync(string pathAccountSid = null,
                                                                                                     ThisMonthResource.CategoryEnum category = null,
                                                                                                     DateTime?startDate      = null,
                                                                                                     DateTime?endDate        = null,
                                                                                                     bool?includeSubaccounts = null,
                                                                                                     int?pageSize            = null,
                                                                                                     long?limit = null,
                                                                                                     ITwilioRestClient client = null)
        {
            var options = new ReadThisMonthOptions()
            {
                PathAccountSid = pathAccountSid, Category = category, StartDate = startDate, EndDate = endDate, IncludeSubaccounts = includeSubaccounts, PageSize = pageSize, Limit = limit
            };

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