private async Task StartPlaylist() { if (RoomSongs.Count > 0) { _spotifyMobileSDK.PlaySong(RoomSongs.OrderByDescending(s => s.SongRating).FirstOrDefault().Song.ServiceId, CurrentRoom.Id.ToString()); } }
private async Task RemoveSong(string roomId) { var topSongId = RoomSongs.OrderByDescending(s => s.SongRating).FirstOrDefault().SongId; var storedToken = await SecureStorage.GetAsync("jwtToken"); var request = new RestRequest($@"api/room/{roomId}/remove/{topSongId}", Method.POST); request.RequestFormat = DataFormat.Json; request.AddHeader("Authorization", $"Bearer {storedToken}"); var results = await _partyPlaylistsClient.ExecuteAsync(request); }