public async Task <IApiResponse <PagedLocationRankingClanWars> > GetClanWarsRankingsResponseAsync(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 <PagedLocationRankingClanWars> apiResponse = await RestApiClient.GetApiResponseAsync <PagedLocationRankingClanWars>( UrlPathBuilder.GetRankingsClanWarUrl((int)locationEnum), locationFilter?.ToQueryParams()); return(apiResponse); }