-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
52 lines (52 loc) · 1.09 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/// <reference path="./index.ts" />
var Library = (function () {
function Library(nameArg) {
this.name = nameArg;
}
;
Library.prototype.addAlbum = function (albumArg) {
this.albums.push(albumArg);
};
return Library;
})();
var Album = (function () {
function Album() {
}
;
Album.prototype.addSong = function (songArg) {
this.songs.push(songArg);
};
;
return Album;
})();
var Song = (function () {
function Song() {
}
;
return Song;
})();
var Artist = (function () {
function Artist() {
}
;
return Artist;
})();
var Genre = (function () {
function Genre() {
}
;
return Genre;
})();
/// <reference path="./typings/tsd.d.ts" />
/// <reference path="./playcontrol.library.classes.ts" />
var through = require("through2");
var path = require("path");
var libraryStore = [];
var playcontrolLibrary = {
new: function (name) {
if (name === void 0) { name = "undefined"; }
var newLibrary = new Library(name);
libraryStore.push(newLibrary);
return newLibrary;
}
};