All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lajospolya.spotifyapiwrapper.body.PlaylistTrackDelete Maven / Gradle / Ivy

Go to download

This project wraps the Spotify public API in order to allow users to intuitively use it

There is a newer version: 3.0.RELEASE
Show newest version
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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy