mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Add a const
for system users which should never display a profile
This commit is contained in:
parent
8c5594b3ea
commit
a0692ce477
@ -15,6 +15,11 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonObject(MemberSerialization.OptIn)]
|
[JsonObject(MemberSerialization.OptIn)]
|
||||||
public class APIUser : IEquatable<APIUser>, IUser
|
public class APIUser : IEquatable<APIUser>, IUser
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A user ID which can be used to represent any system user which is not attached to a user profile.
|
||||||
|
/// </summary>
|
||||||
|
public const int SYSTEM_USER_ID = 0;
|
||||||
|
|
||||||
[JsonProperty(@"id")]
|
[JsonProperty(@"id")]
|
||||||
public int Id { get; set; } = 1;
|
public int Id { get; set; } = 1;
|
||||||
|
|
||||||
@ -238,7 +243,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly APIUser SYSTEM_USER = new APIUser
|
public static readonly APIUser SYSTEM_USER = new APIUser
|
||||||
{
|
{
|
||||||
Id = 0,
|
Id = SYSTEM_USER_ID,
|
||||||
Username = "system",
|
Username = "system",
|
||||||
Colour = @"9c0101",
|
Colour = @"9c0101",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user