You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
564 B
24 lines
564 B
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Booru.Net
|
|
{
|
|
public class DanbooruImage : BooruImage
|
|
{
|
|
[JsonProperty("score")]
|
|
public int? Score { get; set; }
|
|
|
|
[JsonProperty("file_url")]
|
|
private string FileUrl { get; set; }
|
|
|
|
public override string ImageUrl
|
|
=> FileUrl;
|
|
|
|
[JsonProperty("tag_string")]
|
|
private string TagString { get; set; }
|
|
|
|
public IReadOnlyList<string> Tags { get { return TagString.Split(' '); } }
|
|
|
|
public virtual string PostUrl { get { return "https://danbooru.donmai.us/posts/" + ID; } }
|
|
}
|
|
}
|
|
|