Exemple #1
0
 public Track(IntPtr trackPtr, bool fetchAlbumArt)
 {
     this.TrackPtr = trackPtr;
     fetchArt      = fetchAlbumArt;
     SongID        = Spotify.GetTrackLink(trackPtr);
     libspotify.sp_track_add_ref(TrackPtr);
     InitAsync();
 }
Exemple #2
0
        public static async Task <Track> CreateTrackAsync(IntPtr trackPtr)
        {
            var t = new Track(trackPtr);

            t.SongID = Spotify.GetTrackLink(trackPtr);
            await t.InitAsync();

            return(t);
        }