Files
YouTube.js/lib/parser/contents/classes/WatchCardRichHeader.js
2022-06-15 16:49:25 -03:00

17 lines
430 B
JavaScript

'use strict';
const Text = require('./Text');
const NavigationEndpoint = require('./NavigationEndpoint');
class WatchCardRichHeader {
type = 'WatchCardRichHeader';
constructor(data) {
this.title = new Text(data.title);
this.title_endpoint = new NavigationEndpoint(data.titleNavigationEndpoint);
this.subtitle = new Text(data.subtitle);
this.style = data.style;
}
}
module.exports = WatchCardRichHeader;