Exemplo n.º 1
0
 public static async void PlayArtist(Artist artist)
 {
     GlobalVariables.CurrentTracker.SendEvent(EventCategories.Programmatic, EventActions.Play, EventNames.PlayArtist, 0);
     await Playlist.Clear(PlayelistType.Audio);
     JObject artistItem = new JObject(new JProperty("artistid", artist.ArtistId));
     await Playlist.Add(PlayelistType.Audio, artistItem);
     JObject playerItem = new JObject(new JProperty("playlistid", 0));
     await Player.Open(playerItem);
 }
Exemplo n.º 2
0
 public static async void AddArtist(Artist artist)
 {
     JObject artistItem = new JObject(new JProperty("artistid", artist.ArtistId));
     await Playlist.Add(PlayelistType.Audio, artistItem);
 }