Files
YouTube.js/lib/parser/classes/ChipCloudChip.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

17 lines
450 B
JavaScript

'use strict';
const Text = require('./Text');
const NavigationEndpoint = require('./NavigationEndpoint');
class ChipCloudChip {
type = 'ChipCloudChip';
constructor(data) {
// TODO: is this isSelected or just selected
this.is_selected = data.isSelected;
this.endpoint = data.navigationEndpoint && new NavigationEndpoint(data.navigationEndpoint);
this.text = new Text(data.text).toString();
}
}
module.exports = ChipCloudChip;