UNPKG

@imput/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js

24 lines 886 B
import { YTNode } from '../helpers.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; class SettingBoolean extends YTNode { constructor(data) { super(); if (Reflect.has(data, 'title')) { this.title = new Text(data.title); } if (Reflect.has(data, 'summary')) { this.summary = new Text(data.summary); } if (Reflect.has(data, 'enableServiceEndpoint')) { this.enable_endpoint = new NavigationEndpoint(data.enableServiceEndpoint); } if (Reflect.has(data, 'disableServiceEndpoint')) { this.disable_endpoint = new NavigationEndpoint(data.disableServiceEndpoint); } this.item_id = data.itemId; } } SettingBoolean.type = 'SettingBoolean'; export default SettingBoolean; //# sourceMappingURL=SettingBoolean.js.map