mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 20:41:17 +00:00
21 lines
677 B
TypeScript
21 lines
677 B
TypeScript
import { type RawNode } from '../index.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class HowThisWasMadeSectionView extends YTNode {
|
|
static type = 'HowThisWasMadeSectionView';
|
|
|
|
public section_title?: Text;
|
|
public body_text?: Text;
|
|
public body_header?: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
if (Reflect.has(data, 'sectionText'))
|
|
this.section_title = Text.fromAttributed(data.sectionText);
|
|
if (Reflect.has(data, 'bodyText'))
|
|
this.body_text = Text.fromAttributed(data.bodyText);
|
|
if (Reflect.has(data, 'bodyHeader'))
|
|
this.body_header = Text.fromAttributed(data.bodyHeader);
|
|
}
|
|
} |