More stuff

This commit is contained in:
Torben Pi Jensen
2023-11-09 19:30:55 +01:00
parent f8104ffbfe
commit 2da7f2f1c9
7 changed files with 165 additions and 53 deletions
+29 -13
View File
@@ -1,20 +1,36 @@
"use strict";
exports.__esModule = true;
exports.SongType = exports.Song = void 0;
var Song = /** @class */ (function () {
function Song(type, title, url, image, length) {
if (length === void 0) { length = null; }
this.type = type;
this.title = title;
this.url = url;
this.image = image;
this.length = length;
}
return Song;
}());
exports.Song = Song;
exports.Song = exports.QueuedSong = exports.SearchResult = exports.SongType = void 0;
var SongType;
(function (SongType) {
SongType[SongType["YouTube"] = 0] = "YouTube";
SongType[SongType["Spotify"] = 1] = "Spotify";
})(SongType = exports.SongType || (exports.SongType = {}));
var SearchResult = /** @class */ (function () {
function SearchResult(type, title, songId, image) {
this.type = type;
this.title = title;
this.songId = songId;
this.image = image;
}
return SearchResult;
}());
exports.SearchResult = SearchResult;
var QueuedSong = /** @class */ (function () {
function QueuedSong(title, image) {
this.title = title;
this.image = image;
}
return QueuedSong;
}());
exports.QueuedSong = QueuedSong;
var Song = /** @class */ (function () {
function Song(type, songId, title, position) {
this.type = type;
this.songId = songId;
this.title = title;
this.position = position;
}
return Song;
}());
exports.Song = Song;