Added song data class. Added trackers.
This commit is contained in:
16
models/song.js
Normal file
16
models/song.js
Normal file
@@ -0,0 +1,16 @@
|
||||
class Song {
|
||||
constructor(id, name, album, artists, year, duration, progress, session, state, source) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Song;
|
||||
Reference in New Issue
Block a user