2016-11-29 20:24:49 +00:00
|
|
|
|
using NadekoBot.Extensions;
|
|
|
|
|
|
2017-07-17 19:42:36 +00:00
|
|
|
|
namespace NadekoBot.Modules.Searches.Common
|
2016-02-29 17:28:16 +00:00
|
|
|
|
{
|
|
|
|
|
public class AnimeResult
|
|
|
|
|
{
|
|
|
|
|
public int id;
|
2016-11-29 20:24:49 +00:00
|
|
|
|
public string AiringStatus => airing_status.ToTitleCase();
|
2016-02-29 17:28:16 +00:00
|
|
|
|
public string airing_status;
|
|
|
|
|
public string title_english;
|
|
|
|
|
public int total_episodes;
|
|
|
|
|
public string description;
|
|
|
|
|
public string image_url_lge;
|
2016-11-29 20:24:49 +00:00
|
|
|
|
public string[] Genres;
|
2016-12-24 11:49:18 +00:00
|
|
|
|
public string average_score;
|
|
|
|
|
|
2016-11-29 20:24:49 +00:00
|
|
|
|
public string Link => "http://anilist.co/anime/" + id;
|
|
|
|
|
public string Synopsis => description?.Substring(0, description.Length > 500 ? 500 : description.Length) + "...";
|
2016-02-29 17:28:16 +00:00
|
|
|
|
}
|
|
|
|
|
}
|