First stuff

This commit is contained in:
2022-04-18 16:08:19 +02:00
parent abb9b3f415
commit e7c2ae7b8d
17 changed files with 737 additions and 30 deletions

10
APP/DTO/Genre.cs Normal file
View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace APP.DTO;
public class Genre
{
[JsonPropertyName("id")] public int Id { get; set; }
[JsonPropertyName("name")] public string Name { get; set; }
}

58
APP/DTO/SeasonAnime.cs Normal file
View File

@@ -0,0 +1,58 @@
using System.Text.Json.Serialization;
namespace APP.DTO;
public class SeasonAnime
{
[JsonPropertyName("anime")] public long Anime { get; set; }
[JsonPropertyName("title")] public string Title { get; set; }
[JsonPropertyName("titleEn")] public string TitleEn { get; set; }
[JsonPropertyName("titleJp")] public string TitleJp { get; set; }
[JsonPropertyName("imageMedium")] public string ImageMedium { get; set; }
[JsonPropertyName("imageLarge")] public string ImageLarge { get; set; }
[JsonPropertyName("imageThumb")] public string? ImageThumb { get; set; }
[JsonPropertyName("type")] public string Type { get; set; }
[JsonPropertyName("status")] public string Status { get; set; }
[JsonPropertyName("episodes")] public int Episodes { get; set; }
[JsonPropertyName("synopsis")] public string? Synopsis { get; set; }
[JsonPropertyName("genres")] public List<Genre>? Genres { get; set; }
[JsonPropertyName("startDate")] public DateTime StartDate { get; set; }
[JsonPropertyName("endDate")] public DateTime EndDate { get; set; }
[JsonPropertyName("year")] public int Year { get; set; }
[JsonPropertyName("season")] public string SeasonString { get; set; }
[JsonPropertyName("score")] public double Score { get; set; }
[JsonPropertyName("scoredBy")] public int ScoredBy { get; set; }
[JsonPropertyName("rank")] public int Rank { get; set; }
[JsonPropertyName("popularity")] public int Popularity { get; set; }
[JsonPropertyName("members")] public int Members { get; set; }
[JsonPropertyName("source")] public string? Source { get; set; }
[JsonPropertyName("weekday")] public string? Weekday { get; set; }
[JsonPropertyName("studios")] public List<Studio>? Studios { get; set; }
[JsonPropertyName("trailerUrl")] public string? TrailerUrl { get; set; }
[JsonPropertyName("trailerEmbedUrl")] public string? TrailerEmbedUrl { get; set; }
}

10
APP/DTO/Studio.cs Normal file
View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace APP.DTO;
public class Studio
{
[JsonPropertyName("id")] public int Id { get; set; }
[JsonPropertyName("name")] public string Name { get; set; }
}

24
APP/DTO/User.cs Normal file
View File

@@ -0,0 +1,24 @@
using System.Text.Json.Serialization;
namespace APP.DTO;
public class User
{
[JsonPropertyName("id")] public long Id { get; set; }
[JsonPropertyName("username")] public string Username { get; set; }
[JsonPropertyName("url")] public string Url { get; set; }
[JsonPropertyName("imageUrl")] public string ImageUrl { get; set; }
[JsonPropertyName("lastOnline")] public DateTime LastOnline { get; set; }
[JsonPropertyName("gender")] public string? Gender { get; set; }
[JsonPropertyName("birthday")] public DateTime? Birthday { get; set; }
[JsonPropertyName("location")] public string? Location { get; set; }
[JsonPropertyName("joined")] public DateTime Joined { get; set; }
}