Parse parent comments

This commit is contained in:
Andrei Zavatski
2019-10-08 19:09:02 +03:00
parent 3f8fecbc50
commit 000e4a563c
3 changed files with 49 additions and 1 deletions

View File

@ -25,7 +25,10 @@ namespace osu.Game.Online.API.Requests.Responses
comments.ForEach(parent =>
{
if (parent.Id == child.ParentId)
{
parent.ChildComments.Add(child);
child.ParentComment = parent;
}
});
}
});

View File

@ -28,6 +28,8 @@ namespace osu.Game.Online.API.Requests.Responses
public List<Comment> ChildComments = new List<Comment>();
public Comment ParentComment { get; set; }
[JsonProperty(@"user_id")]
public long UserId { get; set; }