twitch clips support added

This commit is contained in:
2024-03-03 03:14:07 +01:00
Unverified
parent 1a57a039aa
commit 2d666ede27
46 changed files with 639 additions and 46 deletions

View File

@@ -0,0 +1,15 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Api.GQL.GetClipToken.Request
{
public class GetClipTokenExtensions
{
[JsonProperty("persistedQuery")]
public GetClipTokenPersistedQuery PersistedQuery { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Api.GQL.GetClipToken.Request
{
public class GetClipTokenPersistedQuery
{
[JsonProperty("version")]
public int Version { get; set; }
[JsonProperty("sha256Hash")]
public string Sha256Hash { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Api.GQL.GetClipToken.Request
{
public class GetClipTokenRequest
{
[JsonProperty("operationName")]
public string OperationName { get; set; }
[JsonProperty("variables")]
public GetClipTokenVariables Variables { get; set; }
[JsonProperty("extensions")]
public GetClipTokenExtensions Extensions { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Api.GQL.GetClipToken.Request
{
public class GetClipTokenVariables
{
[JsonProperty("slug")]
public string Slug { get; set; }
}
}