public Images(ServiceModel.Track track) { Small = track.Images.SingleOrDefault(x => x.Size == "small")?.Url; Medium = track.Images.SingleOrDefault(x => x.Size == "medium")?.Url; Large = track.Images.SingleOrDefault(x => x.Size == "large")?.Url; ExtraLarge = track.Images.SingleOrDefault(x => x.Size == "extralarge")?.Url; }
public Track(ServiceModel.Track track) { Artist = new Artist(track.Artist); Images = new Images(track); Title = track.Name; Timestamp = track.Date == null ? (DateTime?)null : DateTimeHelper.FromUnix(track.Date.Unix); }