UNPKG

@imput/youtubei.js

Version:

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

17 lines 732 B
import { YTNode } from '../helpers.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; class ActiveAccountHeader extends YTNode { constructor(data) { super(); this.account_name = new Text(data.accountName); this.account_photo = Thumbnail.fromResponse(data.accountPhoto); this.endpoint = new NavigationEndpoint(data.serviceEndpoint); this.manage_account_title = new Text(data.manageAccountTitle); this.channel_handle = new Text(data.channelHandle); } } ActiveAccountHeader.type = 'ActiveAccountHeader'; export default ActiveAccountHeader; //# sourceMappingURL=ActiveAccountHeader.js.map