Use new algorithm for comments tree creation

This commit is contained in:
Andrei Zavatski
2020-02-13 02:21:13 +03:00
parent e2b3494352
commit 5201c1c87b
3 changed files with 55 additions and 18 deletions

View File

@ -4,6 +4,7 @@
using Newtonsoft.Json;
using osu.Game.Users;
using System;
using System.Collections.Generic;
namespace osu.Game.Online.API.Requests.Responses
{
@ -15,6 +16,8 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"parent_id")]
public long? ParentId { get; set; }
public readonly List<Comment> ChildComments = new List<Comment>();
public Comment ParentComment { get; set; }
[JsonProperty(@"user_id")]