Esempio n. 1
0
        public async Task <IApiResponse <PagedClanMembers> > GetMembersResponseAsync(string clanTag, ClanMemberFilter clanMemberFilter = null)
        {
            Ensure.ArgumentNotNullOrEmptyString(clanTag, nameof(clanTag));

            if (clanMemberFilter?.After != null && clanMemberFilter.Before != null)
            {
                throw new InvalidOperationException("Only after or before can be specified for a request, not both.");
            }

            IApiResponse <PagedClanMembers> apiResponse =
                await RestApiClient.GetApiResponseAsync <PagedClanMembers>(UrlPathBuilder.GetMemberUrl(clanTag), clanMemberFilter?.ToQueryParams());

            return(apiResponse);
        }