mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
17 lines
430 B
JavaScript
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; |