common/dist/dataTypes.d.ts
Torben Pi Jensen 04253f753a Added playlist
2024-02-03 14:42:42 +01:00

32 lines
945 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);
}
export declare class Playlist {
title: string;
listener: string;
songs: Song[];
constructor(title: string, listener: string, songs: Song[]);
}
export declare class PlaylistDescription {
title: string;
listener: string;
constructor(title: string, listener: string);
}