Added playlist

This commit is contained in:
Torben Pi Jensen
2024-02-03 10:31:04 +01:00
parent 29d8ee56f6
commit 9ce896cd33
8 changed files with 133 additions and 8 deletions
+10 -1
View File
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
exports.__esModule = true;
exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
exports.Playlist = exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
var SongType;
(function (SongType) {
SongType[SongType["YouTube"] = 0] = "YouTube";
@@ -52,3 +52,12 @@ var PlayingSong = /** @class */ (function (_super) {
return PlayingSong;
}(QueuedSong));
exports.PlayingSong = PlayingSong;
var Playlist = /** @class */ (function () {
function Playlist(title, listener, songs) {
this.title = title;
this.listener = listener;
this.songs = songs;
}
return Playlist;
}());
exports.Playlist = Playlist;