com.lajospolya.spotifyapiwrapper.body.PlaylistTrackDelete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-api-wrapper Show documentation
Show all versions of spotify-api-wrapper Show documentation
This project wraps the Spotify public API in order to allow users to intuitively use it
package com.lajospolya.spotifyapiwrapper.body;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.stream.Collectors;
public class PlaylistTrackDelete
{
private List tracks;
@SerializedName("snapshot_id")
private String snapshotId;
public PlaylistTrackDelete(List tracks, String snapshotId)
{
this.tracks = tracks.stream().map(URI::new).collect(Collectors.toList());
this.snapshotId = snapshotId;
}
private class URI
{
private String uri;
private URI(String uri)
{
this.uri = uri;
}
}
}