common/dataTypes.ts
2023-11-05 09:04:22 +01:00

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
}