mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
21 lines
711 B
TypeScript
21 lines
711 B
TypeScript
import NavigationEndpoint from './NavigationEndpoint.ts';
|
|
import Thumbnail from './misc/Thumbnail.ts';
|
|
import { YTNode } from '../helpers.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
|
|
export default class CollageHeroImage extends YTNode {
|
|
static type = 'CollageHeroImage';
|
|
|
|
left: Thumbnail[];
|
|
top_right: Thumbnail[];
|
|
bottom_right: Thumbnail[];
|
|
endpoint: NavigationEndpoint;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.left = Thumbnail.fromResponse(data.leftThumbnail);
|
|
this.top_right = Thumbnail.fromResponse(data.topRightThumbnail);
|
|
this.bottom_right = Thumbnail.fromResponse(data.bottomRightThumbnail);
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
}
|
|
} |