mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
pretty code
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
export class YouTubeThumbnail {
|
||||
id : string;
|
||||
url : string;
|
||||
width : number;
|
||||
height : number;
|
||||
id: string;
|
||||
url: string;
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
constructor(data : any){
|
||||
this.id = data.id
|
||||
this.url = data.url
|
||||
this.width = data.width
|
||||
this.height = data.height
|
||||
constructor(data: any) {
|
||||
this.id = data.id;
|
||||
this.url = data.url;
|
||||
this.width = data.width;
|
||||
this.height = data.height;
|
||||
}
|
||||
|
||||
toJSON(){
|
||||
toJSON() {
|
||||
return {
|
||||
id : this.id,
|
||||
url : this.url,
|
||||
width : this.width,
|
||||
height : this.height
|
||||
}
|
||||
id: this.id,
|
||||
url: this.url,
|
||||
width: this.width,
|
||||
height: this.height
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user