Files
YouTube.js/lib/parser/contents/classes/SectionList.js

19 lines
418 B
JavaScript

'use strict';
const Parser = require('..');
class SectionList {
type = 'sectionListRenderer';
constructor(data) {
this.target_id = data.targetId || null;
this.contents = Parser.parse(data.contents);
data.continuations &&
(this.continuation = data.continuations[0].nextContinuationData.continuation);
this.header = Parser.parse(data.header);
}
}
module.exports = SectionList;