@antoniojps/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
25 lines • 920 B
JavaScript
import { YTNode } from '../../helpers.js';
import NavigationEndpoint from '../NavigationEndpoint.js';
import Text from '../misc/Text.js';
export default class MusicMultiSelectMenuItem extends YTNode {
static type = 'MusicMultiSelectMenuItem';
title;
form_item_entity_key;
selected_icon_type;
endpoint;
selected;
constructor(data) {
super();
this.title = new Text(data.title).toString();
this.form_item_entity_key = data.formItemEntityKey;
if (Reflect.has(data, 'selectedIcon')) {
this.selected_icon_type = data.selectedIcon.iconType;
}
// @TODO: Check if there any other endpoints we can parse.
if (Reflect.has(data, 'selectedCommand')) {
this.endpoint = new NavigationEndpoint(data.selectedCommand);
}
this.selected = !!this.endpoint;
}
}
//# sourceMappingURL=MusicMultiSelectMenuItem.js.map