// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Online.API.Requests.Responses; using osu.Game.Rulesets; namespace osu.Game.Online.API.Requests { public class GetMeRequest : APIRequest { public readonly IRulesetInfo? Ruleset; /// /// Gets the currently logged-in user. /// /// The ruleset to get the user's info for. public GetMeRequest(IRulesetInfo? ruleset = null) { Ruleset = ruleset; } protected override string Target => $@"me/{Ruleset?.ShortName}"; } }