export class Song { public type: SongType public title: string; public url: string; public image: string; public length: number | null; constructor(type: SongType, title: string, url: string, image: string, length: number | null = null) { this.type = type; this.title = title; this.url = url; this.image = image; this.length = length; } } export enum SongType { YouTube, Spotify }