Полный рефакторинг api. Вынесено отдельно api passport
This commit is contained in:
39
YandexMusic.API/Models/Passport/YCheckAvailabilityResult.cs
Normal file
39
YandexMusic.API/Models/Passport/YCheckAvailabilityResult.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace YandexMusic.API.Models.Passport;
|
||||
|
||||
public class YCheckAvailabilityResult
|
||||
{
|
||||
[JsonPropertyName("antifraudScore")]
|
||||
public string AntifraudScore { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("hasAvailableAccounts")]
|
||||
public bool HasAvailableAccounts { get; set; }
|
||||
|
||||
[JsonPropertyName("flnFlowRequired")]
|
||||
public bool FlnFlowRequired { get; set; }
|
||||
|
||||
[JsonPropertyName("can_use_push")]
|
||||
public bool CanUsePush { get; set; }
|
||||
|
||||
[JsonPropertyName("can_use_webauthn")]
|
||||
public bool CanUseWebauthn { get; set; }
|
||||
|
||||
[JsonPropertyName("has_master")]
|
||||
public bool HasMaster { get; set; }
|
||||
|
||||
[JsonPropertyName("is_session_mastered")]
|
||||
public bool IsSessionMastered { get; set; }
|
||||
|
||||
[JsonPropertyName("does_master_have_free_slots")]
|
||||
public bool DoesMasterHaveFreeSlots { get; set; }
|
||||
|
||||
[JsonPropertyName("allowed_registration_flows")]
|
||||
public List<object> AllowedRegistrationFlows { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("SuggestBy")]
|
||||
public string SuggestBy { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("master_info")]
|
||||
public YMasterInfo? MasterInfo { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user