common/dataTypes.ts
2023-11-05 15:27:38 +01:00

24 lines
462 B
TypeScript

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
}