using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Net; using System.Net.Http; using System.Net.Mail; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace VeloeKemonoPartyApp.Data { public class Post { [JsonPropertyName("added")] public string Added { get; set; } [JsonPropertyName("attachments")] public List Attachments { get; set; } [JsonPropertyName("content")] public string Content { get; set; } [JsonPropertyName("edited")] public string Edited { get; set; } [JsonPropertyName("embed")] public Embed Embed { get; set; } [JsonPropertyName("file")] public File File { get; set; } [JsonPropertyName("id")] public string Id { get; set; } [JsonPropertyName("published")] public string Published { get; set; } [JsonPropertyName("service")] public string Service { get; set; } [JsonPropertyName("shared_file")] public bool SharedFile { get; set; } [JsonPropertyName("title")] public string Title { get; set; } [JsonPropertyName("user")] public string User { get; set; } } public class Attachment { [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("path")] public string Path { get; set; } public string Link { get { return $"https://kemono.party/data{Path}"; } } } public class Embed { [JsonPropertyName("description")] public string Description { get; set; } [JsonPropertyName("subject")] public string Subject { get; set; } [JsonPropertyName("url")] public string Url { get; set; } } public class File { [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("path")] public string Path { get; set; } } }