using System; using System.Linq; using Newtonsoft.Json; using PetaPoco; using Sony.Filtr.Utility.Serialization; namespace Sony.Filtr.AppleMusic.Data { public class AppleMusicTrackChartSummaryViewModel { [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? EntryDate { get; set; } public int? EntryPosition { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? PeakDate { get; set; } public int? PeakPosition { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? PeakLatestDate { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? LatestDate { get; set; } public int? LatestPosition { get; set; } public int? CurrentPosition { get; set; } public int? PreviousPosition { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? LatestUpdateDate { get; set; } public DateTime LatestUpdateTimestamp { get; set; } //public bool IsSony { get; set; } } [TableName("tblAppleMusicChartTrackSummary")] public class AppleMusicTrackChartSummary { public string Storefront { get; set; } public string Isrc { get; set; } public DateTime EntryDate { get; set; } public int EntryPosition { get; set; } public DateTime PeakDate { get; set; } public int PeakPosition { get; set; } public DateTime PeakLatestDate { get; set; } public DateTime LatestDate { get; set; } public int LatestPosition { get; set; } public int? CurrentPosition { get; set; } public int? PreviousPosition { get; set; } public DateTime LatestUpdateDate { get; set; } public DateTime LatestUpdateTimestamp { get; set; } } }