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