common/dataTypes.ts
Torben Pi Jensen 9c640ace62 More stuff
2023-11-09 20:49:45 +01:00

18 lines
433 B
TypeScript

export enum SongType {
YouTube,
Spotify
}
export class Song {
constructor(public type: SongType, public title: string, public songId: string, public image: string, public length: number) {
}
}
export class PlayingSong extends Song {
constructor(type: SongType, title: string, songId: string, image: string, length: number, public position: number) {
super(type, title, songId, image, length);
}
}