Compare commits
2 Commits
d08afcc4d6
...
283d7ea4ec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
283d7ea4ec | ||
|
|
e2475c254e |
10
dataTypes.ts
10
dataTypes.ts
@ -5,20 +5,20 @@ export enum SongType {
|
|||||||
|
|
||||||
|
|
||||||
export class Song {
|
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 {
|
export class QueuedSong extends Song {
|
||||||
constructor(type: SongType, title: string, songId: string, image: string, public listener: string) {
|
constructor(type: SongType, title: string, songId: string, image: string, public listener: string, public inAutoPlay: boolean) {
|
||||||
super(type, title, songId, image);
|
super(type, title, songId, image, inAutoPlay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PlayingSong extends QueuedSong {
|
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[]) {
|
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);
|
super(type, title, songId, image, listener, inAutoPlay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "stuen-common",
|
"name": "stuen-common",
|
||||||
"version": "1.2.10",
|
"version": "1.2.11",
|
||||||
"main": "dist/common.js",
|
"main": "dist/common.js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"types": "dist/common.d.ts",
|
"types": "dist/common.d.ts",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user