Added inAutoPlay property to songs
This commit is contained in:
parent
d08afcc4d6
commit
e2475c254e
10
dataTypes.ts
10
dataTypes.ts
@ -5,20 +5,20 @@ export enum SongType {
|
||||
|
||||
|
||||
export class Song {
|
||||
constructor(public type: SongType, public title: string, public songId: string, public image: string) {
|
||||
constructor(public type: SongType, public title: string, public songId: string, public image: string, public inAutoPlay: boolean) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export class QueuedSong extends Song {
|
||||
constructor(type: SongType, title: string, songId: string, image: string, public listener: string) {
|
||||
super(type, title, songId, image);
|
||||
constructor(type: SongType, title: string, songId: string, image: string, public listener: string, public inAutoPlay: boolean) {
|
||||
super(type, title, songId, image, inAutoPlay);
|
||||
}
|
||||
}
|
||||
|
||||
export class PlayingSong extends QueuedSong {
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, public length: number, public position: number, public tags: string[]) {
|
||||
super(type, title, songId, image, listener);
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, public length: number, public position: number, public tags: string[], public inAutoPlay: boolean) {
|
||||
super(type, title, songId, image, listener, inAutoPlay);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user