lunify.js
Version:
A basic api wrapper for the spotify api covering the oauth routes.
34 lines • 939 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PartialPlaylist = void 0;
const Tracks_1 = require("../../managers/playlists/Tracks");
class PartialPlaylist {
client;
tracks;
collaborative;
description;
externalUrls;
url;
id;
images;
name;
owner;
public;
uri;
constructor(client, data, oauth) {
this.client = client;
this.tracks = new Tracks_1.PlaylistTracksManager(client, this, oauth);
this.collaborative = data.collaborative;
this.description = data.description;
this.externalUrls = data.external_urls;
this.url = data.href;
this.id = data.id;
this.images = data.images;
this.name = data.name;
this.owner = data.owner;
this.public = data.public;
this.uri = data.uri;
}
}
exports.PartialPlaylist = PartialPlaylist;
//# sourceMappingURL=index.js.map