lunify.js
Version:
A basic api wrapper for the spotify api covering the oauth routes.
39 lines • 989 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Artist = exports.PartialArtist = void 0;
class PartialArtist {
client;
externalUrls;
url;
id;
name;
type;
uri;
constructor(client, data) {
this.client = client;
this.externalUrls = data.external_urls;
this.url = data.href;
this.id = data.id;
this.name = data.name;
this.type = data.type;
this.uri = data.uri;
}
}
exports.PartialArtist = PartialArtist;
class Artist extends PartialArtist {
client;
followers;
genres;
images;
popularity;
constructor(client, data) {
super(client, data);
this.client = client;
this.followers = { url: data.followers?.href, total: data.followers?.total };
this.genres = data.genres;
this.images = data.images;
this.popularity = data.popularity;
}
}
exports.Artist = Artist;
//# sourceMappingURL=index.js.map