Common stuff initial
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user