mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Implement GetCommentsRequest
This commit is contained in:
36
osu.Game/Online/API/Requests/Responses/APIComments.cs
Normal file
36
osu.Game/Online/API/Requests/Responses/APIComments.cs
Normal file
@ -0,0 +1,36 @@
|
||||
// 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;
|
||||
using osu.Game.Users;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class APIComments
|
||||
{
|
||||
[JsonProperty(@"comments")]
|
||||
public List<Comment> Comments { get; set; }
|
||||
|
||||
[JsonProperty(@"has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
|
||||
[JsonProperty(@"has_more_id")]
|
||||
public long HasMoreId { get; set; }
|
||||
|
||||
[JsonProperty(@"user_follow")]
|
||||
public bool UserFollow { get; set; }
|
||||
|
||||
[JsonProperty(@"included_comments")]
|
||||
public List<Comment> IncludedComments { get; set; }
|
||||
|
||||
[JsonProperty(@"users")]
|
||||
public List<User> Users { get; set; }
|
||||
|
||||
[JsonProperty(@"total")]
|
||||
public int Total { get; set; }
|
||||
|
||||
[JsonProperty(@"top_level_count")]
|
||||
public int TopLevelCount { get; set; }
|
||||
}
|
||||
}
|
56
osu.Game/Online/API/Requests/Responses/Comment.cs
Normal file
56
osu.Game/Online/API/Requests/Responses/Comment.cs
Normal file
@ -0,0 +1,56 @@
|
||||
// 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;
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class Comment
|
||||
{
|
||||
[JsonProperty(@"id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonProperty(@"parent_id")]
|
||||
public long ParentId { get; set; }
|
||||
|
||||
[JsonProperty(@"user_id")]
|
||||
public long UserId { get; set; }
|
||||
|
||||
[JsonProperty(@"message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonProperty(@"message_html")]
|
||||
public string MessageHTML { get; set; }
|
||||
|
||||
[JsonProperty(@"replies_count")]
|
||||
public int RepliesCount { get; set; }
|
||||
|
||||
[JsonProperty(@"votes_count")]
|
||||
public int VotesCount { get; set; }
|
||||
|
||||
[JsonProperty(@"commenatble_type")]
|
||||
public string CommentableType { get; set; }
|
||||
|
||||
[JsonProperty(@"commentable_id")]
|
||||
public int CommentableId { get; set; }
|
||||
|
||||
[JsonProperty(@"legacy_name")]
|
||||
public string LegacyName { get; set; }
|
||||
|
||||
[JsonProperty(@"created_at")]
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
[JsonProperty(@"updated_at")]
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty(@"deleted_at")]
|
||||
public DateTimeOffset DeletedAt { get; set; }
|
||||
|
||||
[JsonProperty(@"edited_at")]
|
||||
public DateTimeOffset EditedAt { get; set; }
|
||||
|
||||
[JsonProperty(@"edited_by_id")]
|
||||
public long EditedById { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user