Пример #1
0
        public IEnumerable <UsageDetails> DetailsForMonth(UsageMonth month)
        {
            var restRequest = new RestRequest("/reports/usage/month/{month}")
                              .AddUrlSegment("month", month.Serialize());

            return(AssertOk(_restClient.Execute <List <UsageDetails> >(restRequest)));
        }
Пример #2
0
        public IEnumerable <UsageForObject> DetailsForEventInMonth(long eventId, UsageMonth month)
        {
            var restRequest = new RestRequest("/reports/usage/month/{month}/event/{event}")
                              .AddUrlSegment("month", month.Serialize())
                              .AddUrlSegment("event", eventId.ToString());

            return(AssertOk(_restClient.Execute <List <UsageForObject> >(restRequest)));
        }