[CHANGE] Finished impl required data for client

This commit is contained in:
max
2025-09-08 01:40:43 +02:00
parent b2c6003203
commit b2c9fc2c52
10 changed files with 199 additions and 228 deletions

View File

@@ -5,7 +5,7 @@ namespace Manager.YouTube.Models;
public class ClientExternalData
{
public ClientState? State { get; set; }
public ClientInformation Information { get; set; } = new();
public Channel? Channel { get; set; }
public List<string> DatasyncIds { get; set; } = [];
public string GetDatasyncId()

View File

@@ -1,9 +0,0 @@
namespace Manager.YouTube.Models;
public class ClientInformation
{
public string? AccountName { get; set; }
public string? AccountHandle { get; set; }
public string? Description { get; set; }
public bool IsPremiumUser { get; set; }
}

View File

@@ -1,10 +1,11 @@
namespace Manager.YouTube.Models.Innertube;
public class ChannelFetch
public class Channel
{
public bool NoIndex { get; set; }
public bool Unlisted { get; set; }
public bool FamilySafe { get; set; }
public string? ChannelName { get; set; }
public string? Handle { get; set; }
public string? Description { get; set; }
public List<string> AvailableCountries { get; set; } = [];

View File

@@ -4,6 +4,7 @@ namespace Manager.YouTube.Models.Innertube;
public class ClientState : AdditionalJsonData
{
public bool IsPremiumUser { get; set; }
[JsonPropertyName("INNERTUBE_API_KEY")]
public string? InnertubeApiKey { get; set; }