Files
YouTube.js/lib/parser/contents/classes/ItemSection.js
2022-06-23 03:13:15 -03:00

17 lines
368 B
JavaScript

'use strict';
const Parser = require('..');
class ItemSection {
type = 'ItemSection';
constructor(data) {
this.header = Parser.parse(data.header);
this.contents = Parser.parse(data.contents);
(data.targetId || data.sectionIdentifier) &&
(this.target_id = data?.target_id || data?.sectionIdentifier);
}
}
module.exports = ItemSection;