mirror of
https://github.com/ultrasn0w/app.git
synced 2025-12-16 02:49:52 +01:00
Register
This commit is contained in:
@@ -2,9 +2,9 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class SeasonAnime
|
||||
public class Anime
|
||||
{
|
||||
[JsonPropertyName("anime")] public long Anime { get; set; }
|
||||
[JsonPropertyName("anime")] public int AnimeId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")] public string Title { get; set; }
|
||||
|
||||
@@ -18,23 +18,23 @@ public class SeasonAnime
|
||||
|
||||
[JsonPropertyName("imageThumb")] public string? ImageThumb { get; set; }
|
||||
|
||||
[JsonPropertyName("type")] public string Type { get; set; }
|
||||
[JsonPropertyName("type")] public string? Type { get; set; }
|
||||
|
||||
[JsonPropertyName("status")] public string Status { get; set; }
|
||||
|
||||
[JsonPropertyName("episodes")] public int Episodes { get; set; }
|
||||
[JsonPropertyName("episodes")] public int? Episodes { get; set; }
|
||||
|
||||
[JsonPropertyName("synopsis")] public string? Synopsis { 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("startDate")] public DateTime? StartDate { get; set; }
|
||||
|
||||
[JsonPropertyName("endDate")] public DateTime EndDate { get; set; }
|
||||
[JsonPropertyName("endDate")] public DateTime? EndDate { get; set; }
|
||||
|
||||
[JsonPropertyName("year")] public int Year { get; set; }
|
||||
[JsonPropertyName("year")] public int? Year { get; set; }
|
||||
|
||||
[JsonPropertyName("season")] public string SeasonString { get; set; }
|
||||
[JsonPropertyName("season")] public string? Season { get; set; }
|
||||
|
||||
[JsonPropertyName("score")] public double Score { get; set; }
|
||||
|
||||
10
APP/DTO/Auth.cs
Normal file
10
APP/DTO/Auth.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class Auth
|
||||
{
|
||||
[JsonPropertyName("username")] public string Username { get; set; }
|
||||
|
||||
[JsonPropertyName("secret")] public string Secret { get; set; }
|
||||
}
|
||||
14
APP/DTO/Register.cs
Normal file
14
APP/DTO/Register.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class Register
|
||||
{
|
||||
[JsonPropertyName("username")] public string Username { get; set; }
|
||||
|
||||
[JsonPropertyName("malId")] public long MalId { get; set; }
|
||||
|
||||
[JsonPropertyName("secret")] public string Secret { get; set; }
|
||||
|
||||
[JsonPropertyName("sauce")] public string Sauce { get; set; }
|
||||
}
|
||||
@@ -12,7 +12,7 @@ public class User
|
||||
|
||||
[JsonPropertyName("imageUrl")] public string ImageUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("lastOnline")] public DateTime LastOnline { get; set; }
|
||||
[JsonPropertyName("lastOnline")] public DateTimeOffset LastOnline { get; set; }
|
||||
|
||||
[JsonPropertyName("gender")] public string? Gender { get; set; }
|
||||
|
||||
|
||||
10
APP/DTO/Watch.cs
Normal file
10
APP/DTO/Watch.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class Watch
|
||||
{
|
||||
[JsonPropertyName("anime")] public int Anime { get; set; }
|
||||
|
||||
[JsonPropertyName("users")] public List<WatchUser> WatchUsers { get; set; }
|
||||
}
|
||||
12
APP/DTO/WatchExtended.cs
Normal file
12
APP/DTO/WatchExtended.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class WatchExtended
|
||||
{
|
||||
[JsonPropertyName("anime")] public int Anime { get; set; }
|
||||
|
||||
[JsonPropertyName("users")] public List<User> Users { get; set; }
|
||||
|
||||
[JsonPropertyName("data")] public Anime Data { get; set; }
|
||||
}
|
||||
14
APP/DTO/WatchUser.cs
Normal file
14
APP/DTO/WatchUser.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace APP.DTO;
|
||||
|
||||
public class WatchUser
|
||||
{
|
||||
[JsonPropertyName("username")] public string Username { get; set; }
|
||||
|
||||
[JsonPropertyName("malId")] public int MalId { get; set; }
|
||||
|
||||
[JsonPropertyName("progress")] public int? Progress { get; set; }
|
||||
|
||||
[JsonPropertyName("updated")] public DateTimeOffset? Updated { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user