mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Add IsTopLevel property
This commit is contained in:
parent
76db200bd3
commit
738580ec61
@ -11,8 +11,18 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"id")]
|
[JsonProperty(@"id")]
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
|
|
||||||
|
private long? parentId;
|
||||||
|
|
||||||
[JsonProperty(@"parent_id")]
|
[JsonProperty(@"parent_id")]
|
||||||
public long ParentId { get; set; }
|
public long? ParentId
|
||||||
|
{
|
||||||
|
get => parentId;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
parentId = value;
|
||||||
|
IsTopLevel = value != null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty(@"user_id")]
|
[JsonProperty(@"user_id")]
|
||||||
public long UserId { get; set; }
|
public long UserId { get; set; }
|
||||||
@ -52,5 +62,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
|
|
||||||
[JsonProperty(@"edited_by_id")]
|
[JsonProperty(@"edited_by_id")]
|
||||||
public long EditedById { get; set; }
|
public long EditedById { get; set; }
|
||||||
|
|
||||||
|
public bool IsTopLevel { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user