using System; using System.Collections.Generic; using System.Linq; using PetaPoco; using Sony.Filtr.Contracts.Definitions; namespace Sony.Filtr.PlaylistSynchronization.Data { [TableName("tblPlaylistSynchronization")] [PrimaryKey("Id", autoIncrement = true)] public class PlaylistSynchronization { public int Id { get; set; } public int ApplicationId { get; set; } public string FromPlaylistId { get; set; } public ServiceType FromServiceType { get; set; } public int FromMusicServiceId { get; set; } public string ToPlaylistId { get; set; } public int ToServiceAccountId { get; set; } public string Title { get; set; } public string Description { get; set; } public DateTime? LastUpdated { get; set; } public FieldCopyMode TitleCopyMode { get; set; } public FieldCopyMode DescriptionCopyMode { get; set; } public bool AppendTrackList { get; set; } public bool Active { get; set; } public DateTime CreatedAt { get; set; } public string SourceTitle { get; set; } public string SourceImage { get; set; } public int SourceTrackCount { get; set; } public int SynchronizedTrackCount { get; set; } public bool Error { get; set; } [Ignore] public List InsertMedia { get; set; } } public enum FieldCopyMode { NoUpdate = 0, UseSetting = 1, CopySource = 2 } }