mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 17:17:24 +08:00
Rename token request method to avoid double Request terminology
This commit is contained in:
parent
a1c35677ef
commit
8bed7748d6
@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play
|
|||||||
PlaylistItem = playlistItem;
|
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);
|
protected override APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token) => new SubmitRoomScoreRequest(token, RoomId.Value ?? 0, PlaylistItem.ID, score.ScoreInfo);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Play
|
|||||||
return new SubmitSoloScoreRequest(beatmapId, token, score.ScoreInfo);
|
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))
|
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))
|
||||||
return null;
|
return null;
|
||||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Screens.Play
|
|||||||
public abstract class SubmittingPlayer : Player
|
public abstract class SubmittingPlayer : Player
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
protected long? Token { get; private set; }
|
protected long? Token { get; private set; }
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var req = CreateTokenRequestRequest();
|
var req = CreateTokenRequest();
|
||||||
|
|
||||||
if (req == null)
|
if (req == null)
|
||||||
{
|
{
|
||||||
@ -118,6 +118,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected abstract APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token);
|
protected abstract APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token);
|
||||||
|
|
||||||
protected abstract APIRequest<APIScoreToken> CreateTokenRequestRequest();
|
protected abstract APIRequest<APIScoreToken> CreateTokenRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user