More stuff
This commit is contained in:
parent
9c640ace62
commit
c3ef658282
@ -5,13 +5,13 @@ export enum SongType {
|
||||
|
||||
|
||||
export class Song {
|
||||
constructor(public type: SongType, public title: string, public songId: string, public image: string, public length: number) {
|
||||
constructor(public type: SongType, public title: string, public songId: string, public image: string) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export class PlayingSong extends Song {
|
||||
constructor(type: SongType, title: string, songId: string, image: string, length: number, public position: number) {
|
||||
super(type, title, songId, image, length);
|
||||
constructor(type: SongType, title: string, songId: string, image: string, public length: number, public position: number) {
|
||||
super(type, title, songId, image);
|
||||
}
|
||||
}
|
||||
|
||||
4
dist/dataTypes.d.ts
vendored
4
dist/dataTypes.d.ts
vendored
@ -7,10 +7,10 @@ export declare class Song {
|
||||
title: string;
|
||||
songId: string;
|
||||
image: string;
|
||||
length: number;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, length: number);
|
||||
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, length: number, position: number);
|
||||
}
|
||||
|
||||
6
dist/dataTypes.js
vendored
6
dist/dataTypes.js
vendored
@ -22,12 +22,11 @@ var SongType;
|
||||
SongType[SongType["Spotify"] = 1] = "Spotify";
|
||||
})(SongType = exports.SongType || (exports.SongType = {}));
|
||||
var Song = /** @class */ (function () {
|
||||
function Song(type, title, songId, image, length) {
|
||||
function Song(type, title, songId, image) {
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.songId = songId;
|
||||
this.image = image;
|
||||
this.length = length;
|
||||
}
|
||||
return Song;
|
||||
}());
|
||||
@ -35,7 +34,8 @@ exports.Song = Song;
|
||||
var PlayingSong = /** @class */ (function (_super) {
|
||||
__extends(PlayingSong, _super);
|
||||
function PlayingSong(type, title, songId, image, length, position) {
|
||||
var _this = _super.call(this, type, title, songId, image, length) || this;
|
||||
var _this = _super.call(this, type, title, songId, image) || this;
|
||||
_this.length = length;
|
||||
_this.position = position;
|
||||
return _this;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user