@duell10111/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
19 lines • 769 B
JavaScript
import { Parser } from '../index.js';
import { YTNode } from '../helpers.js';
import NextContinuationData from './NextContinuationData.js';
import ReloadContinuationData from './ReloadContinuationData.js';
class HorizontalList extends YTNode {
constructor(data) {
super();
this.visible_item_count = data.visibleItemCount;
this.items = Parser.parseArray(data.items);
this.continuations = Reflect.has(data, 'continuations') ? Parser.parseArray(data.continuations, [NextContinuationData, ReloadContinuationData]) : undefined;
}
// XXX: Alias for consistency.
get contents() {
return this.items;
}
}
HorizontalList.type = 'HorizontalList';
export default HorizontalList;
//# sourceMappingURL=HorizontalList.js.map