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