2022-12-30 19:13:44 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2022-12-31 00:53:50 +08:00
|
|
|
using osu.Game.Rulesets;
|
2022-12-30 19:13:44 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Profile
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Contains data about a profile presented on the <see cref="UserProfileOverlay"/>.
|
|
|
|
/// </summary>
|
|
|
|
public class UserProfile
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The user whose profile is being presented.
|
|
|
|
/// </summary>
|
|
|
|
public APIUser User { get; }
|
|
|
|
|
2022-12-31 00:53:50 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The ruleset that the user profile is being shown with.
|
|
|
|
/// </summary>
|
|
|
|
public RulesetInfo Ruleset { get; }
|
2022-12-30 19:13:44 +08:00
|
|
|
|
2022-12-31 00:53:50 +08:00
|
|
|
public UserProfile(APIUser user, RulesetInfo ruleset)
|
2022-12-30 19:13:44 +08:00
|
|
|
{
|
|
|
|
User = user;
|
2022-12-31 00:53:50 +08:00
|
|
|
Ruleset = ruleset;
|
2022-12-30 19:13:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|