using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Sony.Filtr.AppleMusic.Data; using Sony.Filtr.Utility.Serialization; namespace Sony.Filtr.AdminAPI.ViewModels.AppleMusic { [Serializable] public class AppleMusicPlaylistWithTracklistViewModel : AppleMusicPlaylistWithStreamsViewModel { public AppleMusicPlaylistWithTracklistViewModel() { Tracklist = new List(); } public List Tracklist { get; set; } public DateTime? TracksLastAdded { get; set; } public string TracklistCountryCode { get; set; } } public class AppleMusicPlaylistSongViewModel { public long Id { get; set; } public string Storefront { get; set; } public string Name { get; set; } public string ArtistName { get; set; } public string ArtworkUrl { get; set; } public string ComposerName { get; set; } public int TrackNumber { get; set; } public int DiscNumber { get; set; } public long ArtistId { get; set; } public List ArtistIds { get; set; } public long AlbumId { get; set; } public int Duration { get; set; } public int Position { get; set; } public int? PositionChange { get; set; } public DateTime? PositionChangeDate { get; set; } public string ISRC { get; set; } public DateTime? AddedDate { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public DateTime? AlbumReleaseDate { get; set; } [JsonConverter(typeof(DateNoTimeConverter))] public new DateTime? TrackReleaseDate { get; set; } public DateTime? EarliestAdded { get; set; } public int? EarliestPosition { get; set; } public string AlbumName { get; set; } } }