private void CreateMessage(VideoSummaryStyle messageType) { VideoSummaryData item = new VideoSummaryData(1, this.vidSummaryLabel + "_" + 1, "", ThumbnailSize.SMALL, messageType); KeyValuePair <VideoSummaryStyle, List <VideoSummaryData> > keyValuePair = new KeyValuePair <VideoSummaryStyle, List <VideoSummaryData> >(messageType, new List <VideoSummaryData> { item }); Service.Get <EventManager>().SendEvent(EventId.UIVideosQueryResponse, keyValuePair); }
public VideoSummaryData(int location, string label, string videoGuid, ThumbnailSize scale = ThumbnailSize.TINY, VideoSummaryStyle style = VideoSummaryStyle.Featured) { this.Location = location; this.Guid = videoGuid; this.UILabel = label; this.Style = style; this.cleanedUp = false; this.IsVisible = true; this.thumbnailSize = scale; }
public VideoSummary(string videoId, string uiName, VideoSummaryStyle style, ScreenBase parentScreen) { this.videoId = videoId; this.uiName = uiName; this.style = style; this.parentScreen = parentScreen; this.summaryDisplay = null; this.summaryData = null; this.cleanedUp = false; this.thumbSize = ThumbnailSize.SMALL; this.sourceTypeHelper = new QuerySourceTypes(); }