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 pathUser.cs
More file actions
70 lines (52 loc) · 1.75 KB
/
User.cs
File metadata and controls
70 lines (52 loc) · 1.75 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
using AniAPI.NET.Enums;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace AniAPI.NET.Models
{
public class User
{
[JsonProperty("id")]
public long Id { get; set; }
[JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("email")]
public string Email { get; set; }
[JsonProperty("password")]
public string Password { get; set; }
[JsonProperty("email_verified")]
public bool? EmailVerified { get; set; }
[JsonProperty("last_login_date")]
public DateTime? LastLoginDate { get; set; }
[JsonProperty("access_token")]
public string Token { get; set; }
[JsonProperty("role")]
public UserRoleEnum Role { get; set; }
[JsonProperty("gender")]
public UserGenderEnum Gender { get; set; }
[JsonProperty("avatar")]
public string Avatar { get; set; }
[JsonProperty("localization")]
public string Localization { get; set; }
[JsonProperty("anilist_id")]
public long? AnilistId { get; set; }
[JsonProperty("anilist_token")]
public string AnilistToken { get; set; }
[JsonProperty("has_anilist")]
public bool? HasAnilist { get; set; } = null;
[JsonProperty("mal_id")]
public long? MyAnimeListId { get; set; }
[JsonProperty("mal_token")]
public string MyAnimeListToken { get; set; }
[JsonProperty("has_mal")]
public bool? HasMyAnimeList { get; set; } = null;
public override string ToString()
{
return Username;
}
}
}