apollo/models/song.js

29 lines
601 B
JavaScript
Raw Permalink Normal View History

2024-12-04 23:18:35 -05:00
class Song {
2024-12-05 03:27:03 -05:00
id = null;
name = null;
album = null;
artists = [];
year = 0;
duration = 0;
progress = 0;
session = null;
state = null;
source = null;
provider = null;
2024-12-05 03:27:03 -05:00
constructor(id, name, album, artists, year, duration, progress, session, state, source, provider) {
2024-12-04 23:18:35 -05:00
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;
2024-12-04 23:18:35 -05:00
}
}
module.exports = Song;