twitch clips support added
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Api.Helix.GetClips.Response
|
||||
{
|
||||
public class Data
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonProperty("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonProperty("embed_url")]
|
||||
public string EmbedUrl { get; set; }
|
||||
|
||||
[JsonProperty("broadcaster_id")]
|
||||
public string BroadcasterId { get; set; }
|
||||
|
||||
[JsonProperty("broadcaster_name")]
|
||||
public string BroadcasterName { get; set; }
|
||||
|
||||
[JsonProperty("creator_id")]
|
||||
public string CreatorId { get; set; }
|
||||
|
||||
[JsonProperty("creator_name")]
|
||||
public string CreatorName { get; set; }
|
||||
|
||||
[JsonProperty("video_id")]
|
||||
public string VideoId { get; set; }
|
||||
|
||||
[JsonProperty("game_id")]
|
||||
public string GameId { get; set; }
|
||||
|
||||
[JsonProperty("language")]
|
||||
public string Language { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonProperty("view_count")]
|
||||
public long ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonProperty("thumbnail_url")]
|
||||
public string ThumbnailUrl { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public double Duration { get; set; }
|
||||
|
||||
[JsonProperty("vod_offset")]
|
||||
public int VodOffset { get; set; }
|
||||
|
||||
[JsonProperty("is_featured")]
|
||||
public bool IsFeatured { 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.Helix.GetVideos.Response;
|
||||
|
||||
namespace VDownload.Sources.Twitch.Api.Helix.GetClips.Response
|
||||
{
|
||||
public class GetClipsResponse
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public List<Data> Data { get; set; }
|
||||
|
||||
[JsonProperty("pagination")]
|
||||
public Pagination Pagination { 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.Helix.GetClips.Response
|
||||
{
|
||||
public class Pagination
|
||||
{
|
||||
[JsonProperty("cursor")]
|
||||
public string Cursor { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user