Compare commits
No commits in common. "master" and "1.2.18" have entirely different histories.
@ -23,11 +23,10 @@ export class PlayingSong extends QueuedSong {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Playlist {
|
export class Playlist {
|
||||||
constructor(public title: string, public listener: string, public type: SongType, public songs: Song[]) {
|
constructor(public title: string, public listener: string, public songs: Song[]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PlaylistDescription {
|
export class PlaylistDescription {
|
||||||
constructor(public title: string, public listener: string, public type: SongType) {
|
constructor(public title: string, public listener: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
dist/dataTypes.d.ts
vendored
6
dist/dataTypes.d.ts
vendored
@ -25,13 +25,11 @@ export declare class PlayingSong extends QueuedSong {
|
|||||||
export declare class Playlist {
|
export declare class Playlist {
|
||||||
title: string;
|
title: string;
|
||||||
listener: string;
|
listener: string;
|
||||||
type: SongType;
|
|
||||||
songs: Song[];
|
songs: Song[];
|
||||||
constructor(title: string, listener: string, type: SongType, songs: Song[]);
|
constructor(title: string, listener: string, songs: Song[]);
|
||||||
}
|
}
|
||||||
export declare class PlaylistDescription {
|
export declare class PlaylistDescription {
|
||||||
title: string;
|
title: string;
|
||||||
listener: string;
|
listener: string;
|
||||||
type: SongType;
|
constructor(title: string, listener: string);
|
||||||
constructor(title: string, listener: string, type: SongType);
|
|
||||||
}
|
}
|
||||||
|
|||||||
6
dist/dataTypes.js
vendored
6
dist/dataTypes.js
vendored
@ -57,20 +57,18 @@ var PlayingSong = /** @class */ (function (_super) {
|
|||||||
}(QueuedSong));
|
}(QueuedSong));
|
||||||
exports.PlayingSong = PlayingSong;
|
exports.PlayingSong = PlayingSong;
|
||||||
var Playlist = /** @class */ (function () {
|
var Playlist = /** @class */ (function () {
|
||||||
function Playlist(title, listener, type, songs) {
|
function Playlist(title, listener, songs) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
this.type = type;
|
|
||||||
this.songs = songs;
|
this.songs = songs;
|
||||||
}
|
}
|
||||||
return Playlist;
|
return Playlist;
|
||||||
}());
|
}());
|
||||||
exports.Playlist = Playlist;
|
exports.Playlist = Playlist;
|
||||||
var PlaylistDescription = /** @class */ (function () {
|
var PlaylistDescription = /** @class */ (function () {
|
||||||
function PlaylistDescription(title, listener, type) {
|
function PlaylistDescription(title, listener) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
this.type = type;
|
|
||||||
}
|
}
|
||||||
return PlaylistDescription;
|
return PlaylistDescription;
|
||||||
}());
|
}());
|
||||||
|
|||||||
2
dist/parseMessage.js
vendored
2
dist/parseMessage.js
vendored
@ -50,7 +50,7 @@ function parseMessage(message) {
|
|||||||
case 'GetOtherPlaylists':
|
case 'GetOtherPlaylists':
|
||||||
return new messageTypes_1.GetOtherPlaylists();
|
return new messageTypes_1.GetOtherPlaylists();
|
||||||
case 'OthersPlaylists':
|
case 'OthersPlaylists':
|
||||||
return new messageTypes_1.OthersPlaylists(data.playlists);
|
return new messageTypes_1.OthersPlaylists(data.playlist);
|
||||||
case 'ToggleTag':
|
case 'ToggleTag':
|
||||||
return new messageTypes_1.ToggleTag(data.song, data.tag);
|
return new messageTypes_1.ToggleTag(data.song, data.tag);
|
||||||
case 'Shuffle':
|
case 'Shuffle':
|
||||||
|
|||||||
@ -73,7 +73,7 @@ export default function parseMessage(message: string): StuenMessage | null {
|
|||||||
case 'GetOtherPlaylists':
|
case 'GetOtherPlaylists':
|
||||||
return new GetOtherPlaylists();
|
return new GetOtherPlaylists();
|
||||||
case 'OthersPlaylists':
|
case 'OthersPlaylists':
|
||||||
return new OthersPlaylists(data.playlists);
|
return new OthersPlaylists(data.playlist);
|
||||||
case 'ToggleTag':
|
case 'ToggleTag':
|
||||||
return new ToggleTag(data.song, data.tag);
|
return new ToggleTag(data.song, data.tag);
|
||||||
case 'Shuffle':
|
case 'Shuffle':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user