playlist creation, viewing, integration with other views. still wip for full playlist functionality
This commit is contained in:
@@ -43,3 +43,22 @@ export namespace library {
|
||||
|
||||
}
|
||||
|
||||
export namespace playlist {
|
||||
|
||||
export class Summary {
|
||||
ID: number;
|
||||
Name: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Summary(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.ID = source["ID"];
|
||||
this.Name = source["Name"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {playlist} from '../models';
|
||||
import {context} from '../models';
|
||||
|
||||
export function AddTracksToPlaylist(arg1:number,arg2:Array<string>):Promise<void>;
|
||||
|
||||
export function CreatePlaylist(arg1:string):Promise<playlist.Summary>;
|
||||
|
||||
export function CreatePlaylistWithTracks(arg1:string,arg2:Array<string>):Promise<playlist.Summary>;
|
||||
|
||||
export function GetAllPlaylists():Promise<Array<playlist.Summary>>;
|
||||
|
||||
export function SetContext(arg1:context.Context):Promise<void>;
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function AddTracksToPlaylist(arg1, arg2) {
|
||||
return window['go']['playlist']['Service']['AddTracksToPlaylist'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function CreatePlaylist(arg1) {
|
||||
return window['go']['playlist']['Service']['CreatePlaylist'](arg1);
|
||||
}
|
||||
|
||||
export function CreatePlaylistWithTracks(arg1, arg2) {
|
||||
return window['go']['playlist']['Service']['CreatePlaylistWithTracks'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function GetAllPlaylists() {
|
||||
return window['go']['playlist']['Service']['GetAllPlaylists']();
|
||||
}
|
||||
|
||||
export function SetContext(arg1) {
|
||||
return window['go']['playlist']['Service']['SetContext'](arg1);
|
||||
}
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user