public async Task <ApiResponse <List <PlayerChest> > > GetChestsResponseAsync(string[] playerTags, PlayerChestFilter playerChestFilter = null) { Ensure.ArgumentNotNullOrEmptyEnumerable(playerTags, nameof(playerTags)); var apiResponse = await _restApiClient.GetApiResponseAsync <List <PlayerChest> >(UrlPathBuilder.GetPlayerChestsUrl(playerTags), playerChestFilter?.ToQueryParams()); return(apiResponse); }
public async Task <ApiResponse <PlayerChest> > GetChestResponseAsync(string playerTag, PlayerChestFilter playerChestFilter = null) { Ensure.ArgumentNotNullOrEmptyString(playerTag, nameof(playerTag)); var apiResponse = await _restApiClient.GetApiResponseAsync <PlayerChest>(UrlPathBuilder.GetPlayerChestsUrl(playerTag), playerChestFilter?.ToQueryParams()); return(apiResponse); }