[CHANGE] Split up json parsing, added getting account info
This commit is contained in:
parent
3db61b599d
commit
b2c6003203
11 changed files with 198 additions and 48 deletions
|
|
@ -5,4 +5,5 @@ public class ClientInformation
|
|||
public string? AccountName { get; set; }
|
||||
public string? AccountHandle { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool IsPremiumUser { get; set; }
|
||||
}
|
||||
|
|
@ -4,7 +4,10 @@ public class ChannelFetch
|
|||
{
|
||||
public bool NoIndex { get; set; }
|
||||
public bool Unlisted { get; set; }
|
||||
public bool FamilyFriendly { get; set; }
|
||||
public bool FamilySafe { get; set; }
|
||||
public string? Handle { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public List<string> AvailableCountries { get; set; } = [];
|
||||
|
||||
public List<WebImage> AvatarImages { get; set; } = [];
|
||||
public List<WebImage> BannerImages { get; set; } = [];
|
||||
}
|
||||
|
|
@ -15,6 +15,9 @@ public class ClientState : AdditionalJsonData
|
|||
|
||||
[JsonPropertyName("SIGNIN_URL")]
|
||||
public string? SigninUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("INNERTUBE_CLIENT_NAME")]
|
||||
public string? InnerTubeClient { get; set; }
|
||||
|
||||
[JsonPropertyName("INNERTUBE_CLIENT_VERSION")]
|
||||
public string? InnerTubeClientVersion { get; set; }
|
||||
|
|
|
|||
8
Manager.YouTube/Models/Innertube/WebImage.cs
Normal file
8
Manager.YouTube/Models/Innertube/WebImage.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Manager.YouTube.Models.Innertube;
|
||||
|
||||
public class WebImage
|
||||
{
|
||||
public int Width { get; set; }
|
||||
public int Height { get; set; }
|
||||
public string Url { get; set; } = "";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue