diff --git a/dataTypes.ts b/dataTypes.ts index 2f8e725..f080b9f 100644 --- a/dataTypes.ts +++ b/dataTypes.ts @@ -23,10 +23,11 @@ export class PlayingSong extends QueuedSong { } export class Playlist { - constructor(public title: string, public listener: string, public songs: Song[]) { + constructor(public title: string, public listener: string, public type: SongType, public songs: Song[]) { } } + export class PlaylistDescription { - constructor(public title: string, public listener: string) { + constructor(public title: string, public listener: string, public type: SongType) { } } diff --git a/dist/dataTypes.d.ts b/dist/dataTypes.d.ts index d947f71..210df09 100644 --- a/dist/dataTypes.d.ts +++ b/dist/dataTypes.d.ts @@ -25,11 +25,13 @@ export declare class PlayingSong extends QueuedSong { export declare class Playlist { title: string; listener: string; + type: SongType; songs: Song[]; - constructor(title: string, listener: string, songs: Song[]); + constructor(title: string, listener: string, type: SongType, songs: Song[]); } export declare class PlaylistDescription { title: string; listener: string; - constructor(title: string, listener: string); + type: SongType; + constructor(title: string, listener: string, type: SongType); } diff --git a/dist/dataTypes.js b/dist/dataTypes.js index 4bb7bb7..b1ae40a 100644 --- a/dist/dataTypes.js +++ b/dist/dataTypes.js @@ -57,18 +57,20 @@ var PlayingSong = /** @class */ (function (_super) { }(QueuedSong)); exports.PlayingSong = PlayingSong; var Playlist = /** @class */ (function () { - function Playlist(title, listener, songs) { + function Playlist(title, listener, type, songs) { this.title = title; this.listener = listener; + this.type = type; this.songs = songs; } return Playlist; }()); exports.Playlist = Playlist; var PlaylistDescription = /** @class */ (function () { - function PlaylistDescription(title, listener) { + function PlaylistDescription(title, listener, type) { this.title = title; this.listener = listener; + this.type = type; } return PlaylistDescription; }());