NadekoBot/NadekoBot.Modules.Searches/Common/AnimeResult.cs

20 lines
646 B
C#
Raw Normal View History

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;
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;
public string[] Genres;
2016-12-24 11:49:18 +00:00
public string average_score;
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
}
}