Files
common/dist/dataTypes.d.ts
T
2026-05-09 13:12:37 +02:00

43 lines
1.3 KiB
TypeScript

export declare enum SongType {
YouTube = 0,
Spotify = 1
}
export declare class Song {
type: SongType;
title: string;
songId: string;
image: string;
tags: string[];
inAutoPlay: boolean;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], inAutoPlay: boolean);
}
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);
}
export declare class PlayingSong extends QueuedSong {
inAutoPlay: boolean;
constructor(type: SongType, title: string, songId: string, image: string, tags: string[], listener: string, inAutoPlay: boolean);
}
export declare class PlayerControl {
type: SongType;
songId: string;
position: number;
length: number;
constructor(type: SongType, songId: string, position: number, length: number);
}
export declare class Playlist {
title: string;
listener: string;
type: SongType;
songs: Song[];
constructor(title: string, listener: string, type: SongType, songs: Song[]);
}
export declare class PlaylistDescription {
title: string;
listener: string;
type: SongType;
constructor(title: string, listener: string, type: SongType);
}