Полный рефакторинг api. Вынесено отдельно api passport
This commit is contained in:
21
YandexMusic.API/Models/Passport/YPassportUser.cs
Normal file
21
YandexMusic.API/Models/Passport/YPassportUser.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace YandexMusic.API.Models.Passport;
|
||||
|
||||
public class YPassportUser
|
||||
{
|
||||
[JsonPropertyName("track_id")]
|
||||
public string TrackId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("state")]
|
||||
public string State { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public YPassportAccount? Account { get; set; }
|
||||
|
||||
[JsonPropertyName("error")]
|
||||
public string? Error { get; set; }
|
||||
|
||||
[JsonPropertyName("errors")]
|
||||
public List<string>? Errors { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user