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

@@ -5,6 +5,9 @@ namespace VDownload.Sources.Twitch.Configuration.Models{
{
[ConfigurationKeyName("vod")]
public DownloadVod Vod { get; set; }
[ConfigurationKeyName("clip")]
public DownloadClip Clip { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Configuration.Models
{
public class DownloadClip
{
[ConfigurationKeyName("file_name")]
public string FileName { get; set; }
}
}

View File

@@ -7,6 +7,9 @@ namespace VDownload.Sources.Twitch.Configuration.Models
[ConfigurationKeyName("get_videos")]
public string GetVideos { get; set; }
[ConfigurationKeyName("get_clips")]
public string GetClips { get; set; }
[ConfigurationKeyName("get_users")]
public string GetUsers { get; set; }
}

View File

@@ -0,0 +1,21 @@
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Sources.Twitch.Configuration.Models
{
public class GetClipToken
{
[ConfigurationKeyName("operation_name")]
public string OperationName { get; set; }
[ConfigurationKeyName("persisted_query_version")]
public int PersistedQueryVersion { get; set; }
[ConfigurationKeyName("persisted_query_hash")]
public string PersistedQueryHash { get; set; }
}
}

View File

@@ -5,6 +5,9 @@ namespace VDownload.Sources.Twitch.Configuration.Models{
{
[ConfigurationKeyName("get_video_token")]
public GetVideoToken GetVideoToken { get; set; }
[ConfigurationKeyName("get_clip_token")]
public GetClipToken GetClipToken { get; set; }
}
}