Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <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);
 }