mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
18 lines
504 B
JavaScript
18 lines
504 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const Text = require('./Text');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class VerticalWatchCardList {
|
|
type = 'VerticalWatchCardList';
|
|
|
|
constructor(data) {
|
|
this.items = Parser.parse(data.items);
|
|
this.contents = this.items; // XXX: alias for consistency
|
|
this.view_all_text = new Text(data.viewAllText);
|
|
this.view_all_endpoint = new NavigationEndpoint(data.viewAllEndpoint);
|
|
}
|
|
}
|
|
|
|
module.exports = VerticalWatchCardList; |