Beispiel #1
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="end"> Only include usage that has occurred on or before this date </param>
        /// <param name="start"> Only include usage that has occurred on or after this date </param>
        /// <param name="granularity"> The time-based grouping that results are aggregated by </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 UsageRecord </returns>
        public static ResourceSet <UsageRecordResource> Read(DateTime?end   = null,
                                                             DateTime?start = null,
                                                             UsageRecordResource.GranularityEnum granularity = null,
                                                             int?pageSize             = null,
                                                             long?limit               = null,
                                                             ITwilioRestClient client = null)
        {
            var options = new ReadUsageRecordOptions()
            {
                End = end, Start = start, Granularity = granularity, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
Beispiel #2
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="end"> Only include usage that has occurred on or before this date </param>
        /// <param name="start"> Only include usage that has occurred on or after this date </param>
        /// <param name="granularity"> The time-based grouping that results are aggregated by </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 UsageRecord </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <UsageRecordResource> > ReadAsync(DateTime?end   = null,
                                                                                                       DateTime?start = null,
                                                                                                       UsageRecordResource.GranularityEnum granularity = null,
                                                                                                       int?pageSize             = null,
                                                                                                       long?limit               = null,
                                                                                                       ITwilioRestClient client = null)
        {
            var options = new ReadUsageRecordOptions()
            {
                End = end, Start = start, Granularity = granularity, PageSize = pageSize, Limit = limit
            };

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