This repository was archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAnime.cs
More file actions
81 lines (59 loc) · 2.08 KB
/
Anime.cs
File metadata and controls
81 lines (59 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using AniAPI.NET.Enums;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AniAPI.NET.Models
{
public class Anime
{
[JsonProperty("id")]
public long Id { get; set; }
[JsonProperty("anilist_id")]
public long AnilistId { get; set; }
[JsonProperty("mal_id")]
public long MyAnimeListId { get; set; }
[JsonProperty("format")]
public AnimeFormatEnum Format { get; set; }
[JsonProperty("status")]
public AnimeStatusEnum Status { get; set; }
[JsonProperty("titles")]
public Dictionary<string, string> Titles { get; set; }
[JsonProperty("descriptions")]
public Dictionary<string, string> Descriptions { get; set; }
[JsonProperty("start_date")]
public DateTime? StartDate { get; set; }
[JsonProperty("end_date")]
public DateTime? EndDate { get; set; }
[JsonProperty("season_period")]
public AnimeSeasonEnum SeasonPeriod { get; set; }
[JsonProperty("season_year")]
public int? SeasonYear { get; set; }
[JsonProperty("episodes_count")]
public int EpisodesCount { get; set; }
[JsonProperty("episode_duration")]
public int? EpisodeDuration { get; set; }
[JsonProperty("trailer_url")]
public string TrailerUrl { get; set; }
[JsonProperty("cover_image")]
public string CoverImage { get; set; }
[JsonProperty("cover_color")]
public string CoverColor { get; set; }
[JsonProperty("banner_image")]
public string BannerImage { get; set; }
[JsonProperty("genres")]
public List<string> Genres { get; set; }
[JsonProperty("sequel")]
public long? Sequel { get; set; }
[JsonProperty("prequel")]
public long? Prequel { get; set; }
[JsonProperty("score")]
public int Score { get; set; }
public override string ToString()
{
return Titles["en"];
}
}
}