More stuff

This commit is contained in:
Torben Pi Jensen
2023-11-09 19:36:18 +01:00
parent 2da7f2f1c9
commit 6a3eb21439
5 changed files with 55 additions and 83 deletions
+7 -34
View File
@@ -4,41 +4,14 @@ export enum SongType {
}
export class SearchResult {
public type: SongType
public title: string;
public songId: string;
public image: string;
constructor(type: SongType, title: string, songId: string, image: string) {
this.type = type;
this.title = title;
this.songId = songId;
this.image = image;
}
}
export class QueuedSong {
public title: string;
public image: string;
constructor(title: string, image: string) {
this.title = title;
this.image = image;
}
}
export class Song {
public type: SongType
public songId: string;
public title: string;
public position: number;
constructor(public type: SongType, public title: string, public songId: string, public image: string) {
constructor(type: SongType, songId: string, title: string, position: number) {
this.type = type;
this.songId = songId;
this.title = title;
this.position = position;
}
}
export class PlayingSong extends Song {
constructor(type: SongType, title: string, songId: string, image: string, public position: number) {
super(type, title, songId, image);
}
}