29 lines
601 B
JavaScript
29 lines
601 B
JavaScript
class Song {
|
|
id = null;
|
|
name = null;
|
|
album = null;
|
|
artists = [];
|
|
year = 0;
|
|
duration = 0;
|
|
progress = 0;
|
|
session = null;
|
|
state = null;
|
|
source = null;
|
|
provider = null;
|
|
|
|
constructor(id, name, album, artists, year, duration, progress, session, state, source, provider) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.album = album;
|
|
this.artists = artists;
|
|
this.year = year;
|
|
this.duration = duration;
|
|
this.progress = progress;
|
|
this.session = session;
|
|
this.state = state;
|
|
this.source = source;
|
|
this.provider = provider;
|
|
}
|
|
}
|
|
|
|
module.exports = Song; |