Files
common/dist/dataTypes.js
T
2026-05-09 15:43:35 +02:00

74 lines
2.3 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagFrequency = exports.PlaylistDescription = exports.Playlist = exports.PlayerControl = exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
var SongType;
(function (SongType) {
SongType[SongType["YouTube"] = 0] = "YouTube";
SongType[SongType["Spotify"] = 1] = "Spotify";
})(SongType || (exports.SongType = SongType = {}));
class Song {
constructor(type, title, songId, image, tags, inAutoPlay, plays, cutOff) {
this.type = type;
this.title = title;
this.songId = songId;
this.image = image;
this.tags = tags;
this.inAutoPlay = inAutoPlay;
this.plays = plays;
this.cutOff = cutOff;
}
}
exports.Song = Song;
class QueuedSong extends Song {
constructor(type, title, songId, image, tags, listener, inAutoPlay, plays, cutOff) {
super(type, title, songId, image, tags, inAutoPlay, plays, cutOff);
this.listener = listener;
this.inAutoPlay = inAutoPlay;
this.plays = plays;
this.cutOff = cutOff;
}
}
exports.QueuedSong = QueuedSong;
class PlayingSong extends QueuedSong {
constructor(type, title, songId, image, tags, listener, inAutoPlay, plays, cutOff) {
super(type, title, songId, image, tags, listener, inAutoPlay, plays, cutOff);
this.inAutoPlay = inAutoPlay;
this.plays = plays;
this.cutOff = cutOff;
}
}
exports.PlayingSong = PlayingSong;
class PlayerControl {
constructor(type, songId, position, length) {
this.type = type;
this.songId = songId;
this.position = position;
this.length = length;
}
}
exports.PlayerControl = PlayerControl;
class Playlist {
constructor(title, listener, type, songs) {
this.title = title;
this.listener = listener;
this.type = type;
this.songs = songs;
}
}
exports.Playlist = Playlist;
class PlaylistDescription {
constructor(title, listener, type) {
this.title = title;
this.listener = listener;
this.type = type;
}
}
exports.PlaylistDescription = PlaylistDescription;
class TagFrequency {
constructor(tag, frequency) {
this.tag = tag;
this.frequency = frequency;
}
}
exports.TagFrequency = TagFrequency;
//# sourceMappingURL=dataTypes.js.map