Add plays, cutoff, tagfrequency messages
This commit is contained in:
Vendored
+19
-6
@@ -1,34 +1,40 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PlaylistDescription = exports.Playlist = exports.PlayerControl = exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
|
||||
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) {
|
||||
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) {
|
||||
super(type, title, songId, image, tags, inAutoPlay);
|
||||
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) {
|
||||
super(type, title, songId, image, tags, listener, inAutoPlay);
|
||||
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;
|
||||
@@ -58,4 +64,11 @@ class PlaylistDescription {
|
||||
}
|
||||
}
|
||||
exports.PlaylistDescription = PlaylistDescription;
|
||||
class TagFrequency {
|
||||
constructor(tag, frequency) {
|
||||
this.tag = tag;
|
||||
this.frequency = frequency;
|
||||
}
|
||||
}
|
||||
exports.TagFrequency = TagFrequency;
|
||||
//# sourceMappingURL=dataTypes.js.map
|
||||
Reference in New Issue
Block a user