From e2475c254ea264f988089a25c4e2828f993b2e49 Mon Sep 17 00:00:00 2001 From: Thomas Viesmose Birch Date: Sat, 4 May 2024 12:13:59 +0200 Subject: [PATCH] Added inAutoPlay property to songs --- dataTypes.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } }