new_version_init
This commit is contained in:
@@ -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.GetVideoToken.Request
|
||||
{
|
||||
public class GetVideoTokenExtensions
|
||||
{
|
||||
[JsonProperty("durationMilliseconds")]
|
||||
public int DurationMilliseconds { get; set; }
|
||||
|
||||
[JsonProperty("operationName")]
|
||||
public string OperationName { get; set; }
|
||||
|
||||
[JsonProperty("requestID")]
|
||||
public string RequestID { 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.Search.Models.GetVideoToken.Request
|
||||
{
|
||||
public class GetVideoTokenRequest
|
||||
{
|
||||
[JsonProperty("operationName")]
|
||||
public string OperationName { get; set; }
|
||||
|
||||
[JsonProperty("query")]
|
||||
public string Query { get; set; }
|
||||
|
||||
[JsonProperty("variables")]
|
||||
public GetVideoTokenVariables Variables { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Search.Models.GetVideoToken.Request
|
||||
{
|
||||
public class GetVideoTokenVariables
|
||||
{
|
||||
[JsonProperty("isLive")]
|
||||
public bool IsLive { get; set; }
|
||||
|
||||
[JsonProperty("login")]
|
||||
public string Login { get; set; }
|
||||
|
||||
[JsonProperty("isVod")]
|
||||
public bool IsVod { get; set; }
|
||||
|
||||
[JsonProperty("vodID")]
|
||||
public string VodID { get; set; }
|
||||
|
||||
[JsonProperty("playerType")]
|
||||
public string PlayerType { 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.GetVideoToken.Request
|
||||
{
|
||||
public class GetVideoTokenVideoPlaybackAccessToken
|
||||
{
|
||||
[JsonProperty("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
[JsonProperty("signature")]
|
||||
public string Signature { get; set; }
|
||||
|
||||
[JsonProperty("__typename")]
|
||||
public string Typename { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Sources.Twitch.Api.GQL.GetVideoToken.Request;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Api.GQL.GetVideoToken.Response
|
||||
{
|
||||
public class GetVideoTokenData
|
||||
{
|
||||
[JsonProperty("videoPlaybackAccessToken")]
|
||||
public GetVideoTokenVideoPlaybackAccessToken VideoPlaybackAccessToken { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Sources.Twitch.Api.GQL.GetVideoToken.Request;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Api.GQL.GetVideoToken.Response
|
||||
{
|
||||
public class GetVideoTokenResponse
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public GetVideoTokenData Data { get; set; }
|
||||
|
||||
[JsonProperty("extensions")]
|
||||
public GetVideoTokenExtensions Extensions { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user