UNPKG

@antoniojps/youtubei.js

Version:

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

20 lines 677 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import Text from './misc/Text.js'; export default class UniversalWatchCard extends YTNode { static type = 'UniversalWatchCard'; header; call_to_action; sections; collapsed_label; constructor(data) { super(); this.header = Parser.parseItem(data.header); this.call_to_action = Parser.parseItem(data.callToAction); this.sections = Parser.parseArray(data.sections); if (Reflect.has(data, 'collapsedLabel')) { this.collapsed_label = new Text(data.collapsedLabel); } } } //# sourceMappingURL=UniversalWatchCard.js.map