public async Task <IApiResponse <PagedLocationRankingClans> > GetClanRankingsResponseAsync(LocationsEnum locationEnum, LocationFilter locationFilter = null) { if (locationFilter?.After != null && locationFilter.Before != null) { throw new InvalidOperationException("Only after or before can be specified for a request, not both."); } IApiResponse <PagedLocationRankingClans> apiResponse = await RestApiClient.GetApiResponseAsync <PagedLocationRankingClans>(UrlPathBuilder.GetRankingsClanUrl((int)locationEnum), locationFilter?.ToQueryParams()); return(apiResponse); }