using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; //https://github.com/DrCreo/WeebWrap/tree/master/src/WeebWrap namespace crypto { public class KonachanPostJson { [JsonProperty("id")] public int ID { get; set; } [JsonProperty("source")] public string SourceUrl { get; set; } [JsonProperty("file_url")] public string FileUrl { get; set; } [JsonProperty("preview_url")] public string PreviewUrl { get; set; } [JsonProperty("sample_url")] public string SampleUrl { get; set; } [JsonProperty("jpeg_url")] public string JpegUrl { get; set; } public string PostUrl { get { return $"http://konachan.com/post/show/{ID}"; } } [JsonProperty("tags")] public string tags { get; set; } public List Tags { get { return tags.Split(' ').ToList(); } } [JsonProperty("score")] public int Score { get; set; } [JsonProperty("rating")] public string rating { get; set; } [JsonProperty("author")] public string Author { get; set; } } }