public MVideoItem(IPlayListItem item, IVideoDetails details) { Details = details; if (item.Snippet == null) { return; } ChannelId = item.Snippet.ChannelId; ChannelTitle = item.Snippet.ChannelTitle; Thumbnails = item.Snippet.Thumbnails; PublishedAt = item.Snippet.PublishedAt; PublishedAtRaw = item.Snippet.PublishedAtRaw; Kind = item.Kind; }
public MVideoItem(SearchResult item, IVideoDetails details) { Details = details; if (item.Snippet == null) { return; } ChannelId = item.Snippet.ChannelId; ChannelTitle = item.Snippet.ChannelTitle; Thumbnails = new MThumbnailDetails(item.Snippet.Thumbnails); PublishedAt = item.Snippet.PublishedAt; PublishedAtRaw = item.Snippet.PublishedAtRaw; Kind = item.Kind; }
public virtual Dictionary <string, string> GetExtendedProperties() { IVideoDetails details = Other as IVideoDetails; return(details == null ? null : details.GetExtendedProperties()); }