Adding songtype to playlists

This commit is contained in:
Thomas Viesmose Birch 2024-05-04 17:31:58 +02:00
parent 58f972156e
commit 5211a4a976
3 changed files with 11 additions and 6 deletions

View File

@ -23,10 +23,11 @@ export class PlayingSong extends QueuedSong {
} }
export class Playlist { 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 { export class PlaylistDescription {
constructor(public title: string, public listener: string) { constructor(public title: string, public listener: string, public type: SongType) {
} }
} }

6
dist/dataTypes.d.ts vendored
View File

@ -25,11 +25,13 @@ export declare class PlayingSong extends QueuedSong {
export declare class Playlist { export declare class Playlist {
title: string; title: string;
listener: string; listener: string;
type: SongType;
songs: Song[]; songs: Song[];
constructor(title: string, listener: string, songs: Song[]); constructor(title: string, listener: string, type: SongType, songs: Song[]);
} }
export declare class PlaylistDescription { export declare class PlaylistDescription {
title: string; title: string;
listener: string; listener: string;
constructor(title: string, listener: string); type: SongType;
constructor(title: string, listener: string, type: SongType);
} }

6
dist/dataTypes.js vendored
View File

@ -57,18 +57,20 @@ var PlayingSong = /** @class */ (function (_super) {
}(QueuedSong)); }(QueuedSong));
exports.PlayingSong = PlayingSong; exports.PlayingSong = PlayingSong;
var Playlist = /** @class */ (function () { var Playlist = /** @class */ (function () {
function Playlist(title, listener, songs) { function Playlist(title, listener, type, songs) {
this.title = title; this.title = title;
this.listener = listener; this.listener = listener;
this.type = type;
this.songs = songs; this.songs = songs;
} }
return Playlist; return Playlist;
}()); }());
exports.Playlist = Playlist; exports.Playlist = Playlist;
var PlaylistDescription = /** @class */ (function () { var PlaylistDescription = /** @class */ (function () {
function PlaylistDescription(title, listener) { function PlaylistDescription(title, listener, type) {
this.title = title; this.title = title;
this.listener = listener; this.listener = listener;
this.type = type;
} }
return PlaylistDescription; return PlaylistDescription;
}()); }());