twitch clips support added
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user