using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Sony.Filtr.AppleMusic.Data; using Sony.Filtr.Utility.Serialization; namespace Sony.Filtr.AdminAPI.ViewModels.AppleMusic.Chart { public class AppleMusicChartViewModel { public int Id { get; set; } public string Country { get; set; } [JsonConverter(typeof(StringEnumConverter))] public ChartType ChartType { get; set; } public string Chartname { get; set; } public int? GenreId { get; set; } public DateTime Date { get; set; } public DateTime Timestamp { get; set; } } public class AppleMusicChartDataViewModel { public int Id { get; set; } public string Chartname { get; set; } [JsonConverter(typeof(StringEnumConverter))] public ChartType Charttype { get; set; } public string Country { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime Date { get; set; } public int? GenreId { get; set; } public DateTime Timestamp { get; set; } public IEnumerable ChartPositions { get; set; } } }