Ejemplo n.º 1
0
 /// <summary>
 /// Set Playlist Extended Properties
 /// </summary>
 /// <param name="client">Spotify Sdk Client</param>
 /// <param name="response">Playlist Response</param>
 public static void SetPlaylistExtended(this ISpotifySdkClient client, PlaylistResponse response)
 {
     if (response != null)
     {
         client.CurrentPlaylist = response;
         response.IsOwnPlaylist = client.IsPlaylistOwnedByCurrentUser(response);
         response.IsEditable    = response.IsOwnPlaylist || response.Collaborative;
     }
 }