private static ChannelItemInfo CreateFolderChannelItemInfo(LineupItem show) { var folderId = FolderId.CreateShowFolderId(show.Url); return(new ChannelItemInfo { FolderType = ChannelFolderType.Container, Id = folderId.ToString(), ImageUrl = show.ImageUrl, Name = show.Title, Type = ChannelItemType.Folder }); }
private ChannelItemInfo CreateChannelItemInfo(EmissionDTO show) { var folderId = FolderId.CreateShowFolderId(show.Id); return(new ChannelItemInfo { FolderType = ChannelFolderType.Container, Genres = new List <string> { show.Genre.Title }, Id = folderId.ToString(), ImageUrl = GetShowImageUrl(show.CategoryURL), Name = show.Title, Overview = show.Description, ProductionYear = Convert.ToInt32(show.Year), Type = ChannelItemType.Folder, }); }