Standardise naming for online ID

Rather than continuing with `ID` or `Id`, this should follow the new
standards and use `OnlineID` instead. Only updating this since it's a
newly introduced class.
This commit is contained in:
Salman Ahmed
2022-06-18 01:46:37 +03:00
parent b977ce7995
commit 60903be566
4 changed files with 11 additions and 12 deletions

View File

@ -258,7 +258,7 @@ namespace osu.Game.Tournament
public void PopulatePlayer(TournamentPlayer player, Action success = null, Action failure = null, bool immediate = false)
{
var req = new GetUserRequest(player.Id, ladder.Ruleset.Value);
var req = new GetUserRequest(player.OnlineID, ladder.Ruleset.Value);
if (immediate)
{
@ -270,7 +270,7 @@ namespace osu.Game.Tournament
req.Success += res => { populate(); };
req.Failure += _ =>
{
player.Id = 1;
player.OnlineID = 1;
failure?.Invoke();
};
@ -284,7 +284,7 @@ namespace osu.Game.Tournament
if (res == null)
return;
player.Id = res.Id;
player.OnlineID = res.Id;
player.Username = res.Username;
player.CoverUrl = res.CoverUrl;