diff --git a/dataTypes.ts b/dataTypes.ts index b0ef858..2f8e725 100644 --- a/dataTypes.ts +++ b/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); } }