mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
17 lines
450 B
JavaScript
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; |