mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Add API models for comment page metadata
This commit is contained in:
parent
5267e0abf7
commit
c4e358044a
@ -11,6 +11,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class CommentBundle
|
||||
{
|
||||
[JsonProperty(@"commentable_meta")]
|
||||
public List<CommentableMeta> CommentableMeta { get; set; } = new List<CommentableMeta>();
|
||||
|
||||
[JsonProperty(@"comments")]
|
||||
public List<Comment> Comments { get; set; }
|
||||
|
||||
|
28
osu.Game/Online/API/Requests/Responses/CommentableMeta.cs
Normal file
28
osu.Game/Online/API/Requests/Responses/CommentableMeta.cs
Normal file
@ -0,0 +1,28 @@
|
||||
// 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 Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class CommentableMeta
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonProperty("owner_id")]
|
||||
public long? OwnerId { get; set; }
|
||||
|
||||
[JsonProperty("owner_title")]
|
||||
public string? OwnerTitle { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty("url")]
|
||||
public string Url { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user