mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
15 lines
435 B
JavaScript
15 lines
435 B
JavaScript
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
const Text = require('./Text');
|
|
|
|
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; |