using System.Text.Json.Nodes; namespace Uwaa.Pleroma; public class ModerationLog { [JsonPropertyName("items")] public ModerationLogEntry[] Items { get; set; } = null!; [JsonPropertyName("total")] public int Total { get; set; } } public class ModerationLogEntry { [JsonPropertyName("data")] public JsonObject Data { get; set; } = null!; [JsonPropertyName("id")] public int ID { get; set; } [JsonPropertyName("message")] public string Message { get; set; } = null!; [JsonPropertyName("time")] public int Time { get; set; } public string Action => (string)Data["action"]!; public override string ToString() => Message; }