Example #1
0
        /// <summary>
        /// Returns list of most recently uploaded icons.
        /// </summary>
        /// <param name="limit">maximum number of results</param>
        /// <param name="offset">number of results to displace or skip over</param>
        /// <param name="page">number of results of limit length to displace or skip over</param>
        /// <returns></returns>
        public async Task <IEnumerable <Models.Icon> > GetIconRecentUploadsAsync(int?limit = null, int?offset = null, int?page = null)
        {
            IRestRequest restRequest = _requestBuilder.GetIconRecentUploadsRequest(limit, offset, page);

            var response = await _client.ExecuteTaskAsync(restRequest);

            return(HandleResponse <IconsRecentUploadsResponse, IEnumerable <Models.Icon> >(response.StatusCode, response.Content, res => res?.RecentUploads));
        }