コード例 #1
0
 private ChannelItemInfo CreateChannelItemVideo(Day day)
 {
     var twitchVideoId = new TwitchVideoId(day.FullStream.TwitchId, day.FullStream.TimeStart);
     return new ChannelItemInfo
     {
         ContentType = ChannelMediaContentType.Clip,
         Id = twitchVideoId.ToString(),
         ImageUrl = day.ImageUrl,
         MediaType = ChannelMediaType.Video,
         Name = day.FullStream.Title,
         Type = ChannelItemType.Media
     };
 }
コード例 #2
0
 private ChannelItemInfo CreateChannelItemFolders(string eventId, Day day)
 {
     var folderId = FolderId.CreateDayFolderId(eventId, day.DayId);
     return new ChannelItemInfo
     {
         FolderType = ChannelFolderType.Container,
         Id = folderId.ToString(),
         ImageUrl = day.ImageUrl,
         Name = day.Title,
         Type = ChannelItemType.Folder
     };
 }