diff --git a/dataTypes.ts b/dataTypes.ts index 8cc4173..cf5b407 100644 --- a/dataTypes.ts +++ b/dataTypes.ts @@ -11,7 +11,7 @@ export class Song { } export class PlayingSong extends Song { - constructor(type: SongType, title: string, songId: string, image: string, public position: number) { + constructor(type: SongType, title: string, songId: string, image: string, public length: number, public position: number) { super(type, title, songId, image); } } diff --git a/dist/dataTypes.d.ts b/dist/dataTypes.d.ts index b252342..f6e5313 100644 --- a/dist/dataTypes.d.ts +++ b/dist/dataTypes.d.ts @@ -10,6 +10,7 @@ export declare class Song { constructor(type: SongType, title: string, songId: string, image: string); } export declare class PlayingSong extends Song { + length: number; position: number; - constructor(type: SongType, title: string, songId: string, image: string, position: number); + constructor(type: SongType, title: string, songId: string, image: string, length: number, position: number); } diff --git a/dist/dataTypes.js b/dist/dataTypes.js index 5664084..cf5281a 100644 --- a/dist/dataTypes.js +++ b/dist/dataTypes.js @@ -33,8 +33,9 @@ var Song = /** @class */ (function () { exports.Song = Song; var PlayingSong = /** @class */ (function (_super) { __extends(PlayingSong, _super); - function PlayingSong(type, title, songId, image, position) { + function PlayingSong(type, title, songId, image, length, position) { var _this = _super.call(this, type, title, songId, image) || this; + _this.length = length; _this.position = position; return _this; }