[CHANGE] Split up json parsing, added getting account info

This commit is contained in:
max
2025-09-07 22:18:56 +02:00
parent 3db61b599d
commit b2c6003203
11 changed files with 198 additions and 48 deletions

View File

@@ -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; } = [];
}

View File

@@ -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; }

View 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; } = "";
}