Updated javascript for new API changes

This commit is contained in:
2018-02-23 23:14:37 -05:00
parent f708503072
commit 8b148b1ad9
3 changed files with 12 additions and 13 deletions

View File

@ -13,13 +13,13 @@ namespace YTManager.Controllers {
struct Channel_ForAPI {
public string Title;
public string Description;
public string YTID;
public string ID;
public List<string> Video_IDs;
public Channel_ForAPI(Models.Channel c) {
Title = c.Title;
Description = c.Description;
YTID = c.YoutubeID;
ID = c.YoutubeID;
Video_IDs = c.Videos?.Select(v => v.YoutubeID).ToList();
}
}