Add plays, cutoff, tagfrequency messages

This commit is contained in:
Torben Pi Jensen
2026-05-09 15:43:35 +02:00
parent 84ceaeb169
commit 77dc0c19ee
12 changed files with 111 additions and 23 deletions
+14 -3
View File
@@ -9,16 +9,22 @@ export declare class Song {
image: string;
tags: string[];
inAutoPlay: boolean;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], inAutoPlay: boolean);
plays: number;
cutOff: number | null;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], inAutoPlay: boolean, plays: number, cutOff: number | null);
}
export declare class QueuedSong extends Song {
listener: string;
inAutoPlay: boolean;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], listener: string, inAutoPlay: boolean);
plays: number;
cutOff: number | null;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], listener: string, inAutoPlay: boolean, plays: number, cutOff: number | null);
}
export declare class PlayingSong extends QueuedSong {
inAutoPlay: boolean;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], listener: string, inAutoPlay: boolean);
plays: number;
cutOff: number | null;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], listener: string, inAutoPlay: boolean, plays: number, cutOff: number | null);
}
export declare class PlayerControl {
type: SongType;
@@ -40,3 +46,8 @@ export declare class PlaylistDescription {
type: SongType;
constructor(title: string, listener: string, type: SongType);
}
export declare class TagFrequency {
tag: string;
frequency: number;
constructor(tag: string, frequency: number);
}