21 lines
650 B
TypeScript
21 lines
650 B
TypeScript
export declare enum SongType {
|
|
YouTube = 0,
|
|
Spotify = 1
|
|
}
|
|
export declare class Song {
|
|
type: SongType;
|
|
title: string;
|
|
songId: string;
|
|
image: string;
|
|
constructor(type: SongType, title: string, songId: string, image: string);
|
|
}
|
|
export declare class QueuedSong extends Song {
|
|
listener: string;
|
|
constructor(type: SongType, title: string, songId: string, image: string, listener: string);
|
|
}
|
|
export declare class PlayingSong extends QueuedSong {
|
|
length: number;
|
|
position: number;
|
|
constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number);
|
|
}
|