UNPKG

@antoniojps/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

25 lines 844 B
import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import { YTNode } from '../helpers.js'; export default class RichMetadata extends YTNode { static type = 'RichMetadata'; thumbnail; title; subtitle; call_to_action; icon_type; endpoint; constructor(data) { super(); this.thumbnail = Thumbnail.fromResponse(data.thumbnail); this.title = new Text(data.title); this.subtitle = new Text(data.subtitle); this.call_to_action = new Text(data.callToAction); if (Reflect.has(data, 'callToActionIcon')) { this.icon_type = data.callToActionIcon.iconType; } this.endpoint = new NavigationEndpoint(data.endpoint); } } //# sourceMappingURL=RichMetadata.js.map