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>
|
2023-01-10 00:37:28 +08:00
|
|
|
public class UserProfileData
|
2022-12-30 19:13:44 +08:00
|
|
|
{
|
|
|
|
/// <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
|
|
|
|
2023-01-12 02:11:40 +08:00
|
|
|
public UserProfileData(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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|