mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
21 lines
443 B
JavaScript
21 lines
443 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const Text = require('./Text');
|
|
|
|
class VerticalList {
|
|
type = 'VerticalList';
|
|
|
|
constructor(data) {
|
|
this.items = Parser.parse(data.items);
|
|
this.collapsed_item_count = data.collapsedItemCount;
|
|
this.collapsed_state_button_text = new Text(data.collapsedStateButtonText);
|
|
}
|
|
|
|
// XXX: alias for consistency
|
|
get contents() {
|
|
return this.items;
|
|
}
|
|
}
|
|
|
|
module.exports = VerticalList; |