Added inAutoPlay property to songs
This commit is contained in:
parent
283d7ea4ec
commit
00dedc1d85
9
dist/dataTypes.d.ts
vendored
9
dist/dataTypes.d.ts
vendored
@ -7,17 +7,20 @@ export declare class Song {
|
||||
title: string;
|
||||
songId: string;
|
||||
image: string;
|
||||
constructor(type: SongType, title: string, songId: string, image: string);
|
||||
inAutoPlay: boolean;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, inAutoPlay: boolean);
|
||||
}
|
||||
export declare class QueuedSong extends Song {
|
||||
listener: string;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string);
|
||||
inAutoPlay: boolean;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, inAutoPlay: boolean);
|
||||
}
|
||||
export declare class PlayingSong extends QueuedSong {
|
||||
length: number;
|
||||
position: number;
|
||||
tags: string[];
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number, tags: string[]);
|
||||
inAutoPlay: boolean;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number, tags: string[], inAutoPlay: boolean);
|
||||
}
|
||||
export declare class Playlist {
|
||||
title: string;
|
||||
|
||||
13
dist/dataTypes.js
vendored
13
dist/dataTypes.js
vendored
@ -22,20 +22,22 @@ var SongType;
|
||||
SongType[SongType["Spotify"] = 1] = "Spotify";
|
||||
})(SongType || (exports.SongType = SongType = {}));
|
||||
var Song = /** @class */ (function () {
|
||||
function Song(type, title, songId, image) {
|
||||
function Song(type, title, songId, image, inAutoPlay) {
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.songId = songId;
|
||||
this.image = image;
|
||||
this.inAutoPlay = inAutoPlay;
|
||||
}
|
||||
return Song;
|
||||
}());
|
||||
exports.Song = Song;
|
||||
var QueuedSong = /** @class */ (function (_super) {
|
||||
__extends(QueuedSong, _super);
|
||||
function QueuedSong(type, title, songId, image, listener) {
|
||||
var _this = _super.call(this, type, title, songId, image) || this;
|
||||
function QueuedSong(type, title, songId, image, listener, inAutoPlay) {
|
||||
var _this = _super.call(this, type, title, songId, image, inAutoPlay) || this;
|
||||
_this.listener = listener;
|
||||
_this.inAutoPlay = inAutoPlay;
|
||||
return _this;
|
||||
}
|
||||
return QueuedSong;
|
||||
@ -43,11 +45,12 @@ var QueuedSong = /** @class */ (function (_super) {
|
||||
exports.QueuedSong = QueuedSong;
|
||||
var PlayingSong = /** @class */ (function (_super) {
|
||||
__extends(PlayingSong, _super);
|
||||
function PlayingSong(type, title, songId, image, listener, length, position, tags) {
|
||||
var _this = _super.call(this, type, title, songId, image, listener) || this;
|
||||
function PlayingSong(type, title, songId, image, listener, length, position, tags, inAutoPlay) {
|
||||
var _this = _super.call(this, type, title, songId, image, listener, inAutoPlay) || this;
|
||||
_this.length = length;
|
||||
_this.position = position;
|
||||
_this.tags = tags;
|
||||
_this.inAutoPlay = inAutoPlay;
|
||||
return _this;
|
||||
}
|
||||
return PlayingSong;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stuen-common",
|
||||
"version": "1.2.11",
|
||||
"version": "1.2.12",
|
||||
"main": "dist/common.js",
|
||||
"type": "commonjs",
|
||||
"types": "dist/common.d.ts",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user