Beispiel #1
0
 private ChannelItemInfo CreateFolderChannelItemInfo(Lineup lineup)
 {
     var folderId = FolderId.CreateSectionFolderId(lineup.Title);
     return new ChannelItemInfo
     {
         FolderType = ChannelFolderType.Container,
         Id = folderId.ToString(),
         Name = lineup.Title,
         Type = ChannelItemType.Folder
     };
 }
Beispiel #2
0
 private IEnumerable<ChannelItemInfo> CreateChannelItemInfo(Lineup lineup)
 {
     return lineup.LineupItems
         .Where(item => item.IsActive)
         .Select(item => CreateChannelItemInfo(item, lineup.Title));
 }