mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
19 lines
617 B
TypeScript
19 lines
617 B
TypeScript
import Thumbnail from './misc/Thumbnail.ts';
|
|
import NavigationEndpoint from './NavigationEndpoint.ts';
|
|
import { YTNode } from '../helpers.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
|
|
export default class ChannelThumbnailWithLink extends YTNode {
|
|
static type = 'ChannelThumbnailWithLink';
|
|
|
|
thumbnails: Thumbnail[];
|
|
endpoint: NavigationEndpoint;
|
|
label?: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
this.label = data.accessibility?.accessibilityData?.label;
|
|
}
|
|
} |