@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
17 lines • 569 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import Text from './misc/Text.js';
class RichShelf extends YTNode {
constructor(data) {
super();
this.title = new Text(data.title);
this.contents = Parser.parseArray(data.contents);
if (Reflect.has(data, 'endpoint')) {
this.endpoint = new NavigationEndpoint(data.endpoint);
}
}
}
RichShelf.type = 'RichShelf';
export default RichShelf;
//# sourceMappingURL=RichShelf.js.map