22 lines
340 B
JavaScript
22 lines
340 B
JavaScript
export class Track {
|
|
constructor(name, url) {
|
|
this.name = name;
|
|
this.url = url;
|
|
}
|
|
|
|
get name() {
|
|
return this._name;
|
|
}
|
|
|
|
set name(value) {
|
|
this._name = value;
|
|
}
|
|
|
|
get url() {
|
|
return this._url;
|
|
}
|
|
|
|
set url(value) {
|
|
this._url = value;
|
|
}
|
|
} |