Files
YouTube.js/lib/parser/classes/SingleActionEmergencySupport.js
LuanRT 68cb841c00 refactor!: finish parser migration
Finally! :)

This removes all code related to the old parser.

#65
2022-07-11 06:19:10 -03:00

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;