1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Rename token request method to avoid double Request terminology

This commit is contained in:
Dean Herbert 2021-03-24 13:02:37 +09:00
parent a1c35677ef
commit 8bed7748d6
3 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play
PlaylistItem = playlistItem;
}
protected override APIRequest<APIScoreToken> CreateTokenRequestRequest() => new CreateRoomScoreRequest(RoomId.Value ?? 0, PlaylistItem.ID, Game.VersionHash);
protected override APIRequest<APIScoreToken> CreateTokenRequest() => new CreateRoomScoreRequest(RoomId.Value ?? 0, PlaylistItem.ID, Game.VersionHash);
protected override APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token) => new SubmitRoomScoreRequest(token, RoomId.Value ?? 0, PlaylistItem.ID, score.ScoreInfo);
}

View File

@ -21,7 +21,7 @@ namespace osu.Game.Screens.Play
return new SubmitSoloScoreRequest(beatmapId, token, score.ScoreInfo);
}
protected override APIRequest<APIScoreToken> CreateTokenRequestRequest()
protected override APIRequest<APIScoreToken> CreateTokenRequest()
{
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))
return null;

View File

@ -18,7 +18,7 @@ namespace osu.Game.Screens.Play
public abstract class SubmittingPlayer : Player
{
/// <summary>
/// The token to be used for the current submission. This is fetched via a request created by <see cref="CreateTokenRequestRequest"/>.
/// The token to be used for the current submission. This is fetched via a request created by <see cref="CreateTokenRequest"/>.
/// </summary>
protected long? Token { get; private set; }
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play
return;
}
var req = CreateTokenRequestRequest();
var req = CreateTokenRequest();
if (req == null)
{
@ -118,6 +118,6 @@ namespace osu.Game.Screens.Play
protected abstract APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token);
protected abstract APIRequest<APIScoreToken> CreateTokenRequestRequest();
protected abstract APIRequest<APIScoreToken> CreateTokenRequest();
}
}