UNPKG

@antoniojps/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

21 lines 750 B
import { Text } from '../misc.js'; import { YTNode } from '../helpers.js'; import NavigationEndpoint from './NavigationEndpoint.js'; export default class ShareTarget extends YTNode { static type = 'ShareTarget'; endpoint; service_name; target_id; title; constructor(data) { super(); if (Reflect.has(data, 'serviceEndpoint')) this.endpoint = new NavigationEndpoint(data.serviceEndpoint); else if (Reflect.has(data, 'navigationEndpoint')) this.endpoint = new NavigationEndpoint(data.navigationEndpoint); this.service_name = data.serviceName; this.target_id = data.targetId; this.title = new Text(data.title); } } //# sourceMappingURL=ShareTarget.js.map