using System; using PetaPoco; using Sony.Filtr.YouTube.Api; namespace Sony.Filtr.YouTube.Videos { [TableName("tblYoutubeVideo")] public class YouTubeVideo { public YouTubeVideo() { } public YouTubeVideo(FullVideoItem video) { Id = video.id; ChannelId = video.snippet.channelId; Published = DateTime.Parse(video.snippet.publishedAt); Title = video.snippet.title; } public YouTubeVideo(PlaylistItem video) { Id = video.id; ChannelId = video.snippet.channelId; Published = DateTime.Parse(video.snippet.publishedAt); Title = video.snippet.title; } public string Id { get; set; } public string Title { get; set; } public DateTime Published { get; set; } public string ChannelId { get; set; } } }