Ejemplo n.º 1
0
 private ChannelItemInfo CreateChannelItemVideo(VideoLink videoLink)
 {
     var twitchVideoId = new TwitchVideoId(videoLink.TwitchId, videoLink.TimeStart);
     return new ChannelItemInfo
     {
         ContentType = ChannelMediaContentType.Clip,
         Id = twitchVideoId.ToString(),
         MediaType = ChannelMediaType.Video,
         Name = videoLink.Title,
         Type = ChannelItemType.Media
     };
 }
Ejemplo n.º 2
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
     };
 }