Files
YouTube.js/src/parser/classes/AccountChannel.ts
2022-08-25 01:43:05 -03:00

18 lines
431 B
TypeScript

import Text from './misc/Text';
import NavigationEndpoint from './NavigationEndpoint';
import { YTNode } from '../helpers';
class AccountChannel extends YTNode {
static type = 'AccountChannel';
title: Text;
endpoint: NavigationEndpoint;
constructor(data: any) {
super();
this.title = new Text(data.title);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
}
}
export default AccountChannel;