mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
18 lines
368 B
JavaScript
18 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);
|
|
|
|
if (data.targetId || data.sectionIdentifier) {
|
|
this.target_id = data?.target_id || data?.sectionIdentifier;
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = ItemSection; |