mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import { YTNode } from '../helpers.js';
|
|
import Parser, { type RawNode } from '../index.js';
|
|
import ContinuationItem from './ContinuationItem.js';
|
|
import EngagementPanelTitleHeader from './EngagementPanelTitleHeader.js';
|
|
import MacroMarkersList from './MacroMarkersList.js';
|
|
import SectionList from './SectionList.js';
|
|
import StructuredDescriptionContent from './StructuredDescriptionContent.js';
|
|
|
|
export default class EngagementPanelSectionList extends YTNode {
|
|
static type = 'EngagementPanelSectionList';
|
|
|
|
header: EngagementPanelTitleHeader | null;
|
|
content: SectionList | ContinuationItem | StructuredDescriptionContent | MacroMarkersList | null;
|
|
target_id?: string;
|
|
panel_identifier?: string;
|
|
visibility?: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.header = Parser.parseItem(data.header, EngagementPanelTitleHeader);
|
|
this.content = Parser.parseItem(data.content, [ SectionList, ContinuationItem, StructuredDescriptionContent, MacroMarkersList ]);
|
|
this.panel_identifier = data.panelIdentifier;
|
|
this.target_id = data.targetId;
|
|
this.visibility = data.visibility;
|
|
}
|
|
}
|