/// <summary> /// Updates the track with the properties of the given Spotify track /// </summary> /// <param name="spTrack">The Spotify track to update to</param> public void Update(SpotiFire.Track spTrack) { this.Title = spTrack.Name; this.Artist = spTrack.FirstArtist(); this.Album = spTrack.Album.Name; this.AlbumArtist = spTrack.Album.Artist.Name; this.DiscNumber = (uint)spTrack.Disc; this.TrackNumber = (uint)spTrack.Index; this.Duration = spTrack.Duration; this.AltId = spTrack.GetLink().ToString(); }
/// <summary> /// Constructs a new Track object /// </summary> /// <param name="file">The FileInfo object of the music file</param> public Track(SpotiFire.Track spTrack) { this.Update(spTrack); }