Exemple #1
0
 public static async void AddMovie(Movie movie)
 {
     JObject movieItem = new JObject(new JProperty("movieid", movie.MovieId));
     await Playlist.Add(PlayelistType.Video, movieItem);
 }
Exemple #2
0
 public static async void AddArtist(Artist artist)
 {
     JObject artistItem = new JObject(new JProperty("artistid", artist.ArtistId));
     await Playlist.Add(PlayelistType.Audio, artistItem);
 }
Exemple #3
0
 public static async void AddSong(Song song)
 {
     JObject songItem = new JObject(new JProperty("songid", song.SongId));
     await Playlist.Add(PlayelistType.Audio, songItem);
 }
Exemple #4
0
 //Extra queue methods
 public static async void AddAlbum(Album album)
 {
     JObject albumItem = new JObject(new JProperty("albumid", album.AlbumId));
     await Playlist.Add(PlayelistType.Audio, albumItem);
 }