UNPKG

lunify.js

Version:

A basic api wrapper for the spotify api covering the oauth routes.

28 lines 958 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Artist = exports.PartialArtist = void 0; class PartialArtist { 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 { constructor(client, data) { var _a, _b; super(client, data); this.client = client; this.followers = { url: (_a = data.followers) === null || _a === void 0 ? void 0 : _a.href, total: (_b = data.followers) === null || _b === void 0 ? void 0 : _b.total }; this.genres = data.genres; this.images = data.images; this.popularity = data.popularity; } } exports.Artist = Artist; //# sourceMappingURL=index.js.map