mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
19 lines
508 B
TypeScript
19 lines
508 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import NavigationEndpoint from './NavigationEndpoint.js';
|
|
import Thumbnail from './misc/Thumbnail.js';
|
|
|
|
class HeroPlaylistThumbnail extends YTNode {
|
|
static type = 'HeroPlaylistThumbnail';
|
|
|
|
thumbnails: Thumbnail[];
|
|
on_tap_endpoint: NavigationEndpoint;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.on_tap_endpoint = new NavigationEndpoint(data.onTap);
|
|
}
|
|
}
|
|
|
|
export default HeroPlaylistThumbnail; |