42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace YandexMusic.API.Models.Passport;
|
|
|
|
public class YMultistepStart
|
|
{
|
|
[JsonPropertyName("track_id")]
|
|
public string TrackId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("can_authorize")]
|
|
public bool CanAuthorize { get; set; }
|
|
|
|
[JsonPropertyName("can_register")]
|
|
public bool CanRegister { get; set; }
|
|
|
|
[JsonPropertyName("is_rfc_2fa_enabled")]
|
|
public bool IsRfc2faEnabled { get; set; }
|
|
|
|
[JsonPropertyName("allowed_account_types")]
|
|
public List<string> AllowedAccountTypes { get; set; } = new();
|
|
|
|
[JsonPropertyName("location_id")]
|
|
public string LocationId { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("primary_alias_type")]
|
|
public int PrimaryAliasType { get; set; }
|
|
|
|
[JsonPropertyName("auth_methods")]
|
|
public List<string> AuthMethods { get; set; } = new();
|
|
|
|
[JsonPropertyName("preferred_auth_method")]
|
|
public string PreferredAuthMethod { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("csrf_token")]
|
|
public string CsrfToken { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("error")]
|
|
public string? Error { get; set; }
|
|
|
|
[JsonPropertyName("errors")]
|
|
public List<string>? Errors { get; set; }
|
|
} |