mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
21 lines
632 B
JavaScript
21 lines
632 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const Text = require('./Text');
|
|
|
|
class VideoSecondaryInfo {
|
|
type = 'VideoSecondaryInfo';
|
|
|
|
constructor(data) {
|
|
this.owner = Parser.parse(data.owner);
|
|
this.description = new Text(data.description);
|
|
this.subscribe_button = Parser.parse(data.subscribeButton);
|
|
this.metadata = Parser.parse(data.metadataRowContainer);
|
|
this.show_more_text = data.showMoreText;
|
|
this.show_less_text = data.showLessText;
|
|
this.default_expanded = data.defaultExpanded;
|
|
this.description_collapsed_lines = data.descriptionCollapsedLines;
|
|
}
|
|
}
|
|
|
|
module.exports = VideoSecondaryInfo; |