18 lines
433 B
TypeScript
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);
|
|
}
|
|
}
|