Merge pull request #392 from iceljc/features/add-youtube-channel
add channel
This commit is contained in:
commit
07bfaa01f0
|
|
@ -3,7 +3,7 @@ namespace BotSharp.Abstraction.Google.Models;
|
||||||
public class GoogleVideoResult
|
public class GoogleVideoResult
|
||||||
{
|
{
|
||||||
public string Kind { get; set; }
|
public string Kind { get; set; }
|
||||||
public IList<VideoItem> Items { get; set; } = new List<VideoItem>();
|
public List<VideoItem> Items { get; set; } = new List<VideoItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class VideoItem
|
public class VideoItem
|
||||||
|
|
@ -25,6 +25,7 @@ public class VideoSnippet
|
||||||
{
|
{
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
public string ChannelId { get; set; }
|
||||||
public string ChannelTitle { get; set; }
|
public string ChannelTitle { get; set; }
|
||||||
public VideoThumbnails Thumbnails { get; set; }
|
public VideoThumbnails Thumbnails { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,5 @@ public class YoutubeSettings
|
||||||
public string Endpoint { get; set; }
|
public string Endpoint { get; set; }
|
||||||
public string Part { get; set; }
|
public string Part { get; set; }
|
||||||
public string RegionCode { get; set; }
|
public string RegionCode { get; set; }
|
||||||
|
public IList<string> Channels { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -229,7 +229,8 @@
|
||||||
"Youtube": {
|
"Youtube": {
|
||||||
"Endpoint": "https://www.googleapis.com/youtube/v3/search",
|
"Endpoint": "https://www.googleapis.com/youtube/v3/search",
|
||||||
"RegionCode": "US",
|
"RegionCode": "US",
|
||||||
"Part": "id,snippet"
|
"Part": "id,snippet",
|
||||||
|
"Channels": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue