@antoniojps/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
21 lines • 702 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import Text from './misc/Text.js';
export default class VerticalWatchCardList extends YTNode {
static type = 'VerticalWatchCardList';
items;
view_all_text;
view_all_endpoint;
constructor(data) {
super();
this.items = Parser.parseArray(data.items);
this.view_all_text = new Text(data.viewAllText);
this.view_all_endpoint = new NavigationEndpoint(data.viewAllEndpoint);
}
// XXX: Alias for consistency.
get contents() {
return this.items;
}
}
//# sourceMappingURL=VerticalWatchCardList.js.map