More stuff

This commit is contained in:
Torben Pi Jensen
2023-11-09 22:12:28 +01:00
parent a11237f70d
commit 4d3834be1d
6 changed files with 36 additions and 14 deletions
+14 -4
View File
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
exports.__esModule = true;
exports.PlayingSong = exports.Song = exports.SongType = void 0;
exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
var SongType;
(function (SongType) {
SongType[SongType["YouTube"] = 0] = "YouTube";
@@ -31,14 +31,24 @@ var Song = /** @class */ (function () {
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;
_this.listener = listener;
return _this;
}
return QueuedSong;
}(Song));
exports.QueuedSong = QueuedSong;
var PlayingSong = /** @class */ (function (_super) {
__extends(PlayingSong, _super);
function PlayingSong(type, title, songId, image, length, position) {
var _this = _super.call(this, type, title, songId, image) || this;
function PlayingSong(type, title, songId, image, listener, length, position) {
var _this = _super.call(this, type, title, songId, image, listener) || this;
_this.length = length;
_this.position = position;
return _this;
}
return PlayingSong;
}(Song));
}(QueuedSong));
exports.PlayingSong = PlayingSong;