48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace YandexMusic.API.Models.Passport;
|
|
|
|
public class YPassportAccount
|
|
{
|
|
[JsonPropertyName("avatar_url")]
|
|
public string AvatarUrl { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("display_login")]
|
|
public string DisplayLogin { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("display_name")]
|
|
public YPassportName? DisplayName { get; set; }
|
|
|
|
[JsonPropertyName("has_master")]
|
|
public bool HasMaster { get; set; }
|
|
|
|
[JsonPropertyName("has_plus")]
|
|
public bool HasPlus { get; set; }
|
|
|
|
[JsonPropertyName("has_secure_phone")]
|
|
public bool HasSecurePhone { get; set; }
|
|
|
|
[JsonPropertyName("is_2fa_enabled")]
|
|
public bool Is2faEnabled { get; set; }
|
|
|
|
[JsonPropertyName("is_rfc_2fa_enabled")]
|
|
public bool IsRfc2faEnabled { get; set; }
|
|
|
|
[JsonPropertyName("is_sms_2fa_enabled")]
|
|
public bool IsSms2faEnabled { get; set; }
|
|
|
|
[JsonPropertyName("is_workspace_user")]
|
|
public bool IsWorkspaceUser { get; set; }
|
|
|
|
[JsonPropertyName("is_yandexoid")]
|
|
public bool IsYandexoid { get; set; }
|
|
|
|
public bool Login { get; set; }
|
|
|
|
public YPassportPerson? Person { get; set; }
|
|
|
|
[JsonPropertyName("secure_phone_id")]
|
|
public int SecurePhoneId { get; set; }
|
|
|
|
public int Uid { get; set; }
|
|
} |