Refactor API logic

This commit is contained in:
Andrei Zavatski
2019-11-27 21:56:22 +03:00
parent 2135a7fd7b
commit c546df8a80
9 changed files with 19 additions and 41 deletions

View File

@ -7,12 +7,12 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Users.Drawables;
using osuTK;
using osu.Game.Online.API.Requests.Responses;
using System;
using osu.Game.Users;
namespace osu.Game.Overlays.Rankings.Tables
{
public class CountriesTable : RankingsTable<APICountryRankings>
public class CountriesTable : RankingsTable<CountryStatistics>
{
public CountriesTable(int page = 1)
: base(page)
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Rankings.Tables
new TableColumn("Avg. Perf.", Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
};
protected override Drawable[] CreateContent(int index, APICountryRankings item) => new Drawable[]
protected override Drawable[] CreateContent(int index, CountryStatistics item) => new Drawable[]
{
new OsuSpriteText
{