Added song data class. Added trackers.

This commit is contained in:
Tom
2024-12-05 04:18:35 +00:00
parent 539b9a5055
commit 6e43d681da
4 changed files with 171 additions and 0 deletions

16
models/song.js Normal file
View 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;