19 lines
294 B
JavaScript
19 lines
294 B
JavaScript
class Track {
|
|
constructor(data) {
|
|
this.id = data.id
|
|
this.title = data.title
|
|
|
|
this.artists = data.artists
|
|
|
|
this.album = data.album
|
|
|
|
this.duration = data.duration
|
|
this.explicit = data.explicit
|
|
this.banned = data.banned ?? false
|
|
}
|
|
|
|
static idMinLength = 22
|
|
}
|
|
|
|
export default Track
|