mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
18 lines
520 B
JavaScript
18 lines
520 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class SingleActionEmergencySupport {
|
|
type = 'SingleActionEmergencySupport';
|
|
|
|
constructor(data) {
|
|
this.action_text = new Text(data.actionText);
|
|
this.nav_text = new Text(data.navigationText);
|
|
this.details = new Text(data.detailsText);
|
|
this.icon_type = data.icon.iconType;
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
}
|
|
}
|
|
|
|
module.exports = SingleActionEmergencySupport; |