mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 02:22:11 +00:00
22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class ChannelHeaderLinksView extends YTNode {
|
|
static type = 'ChannelHeaderLinksView';
|
|
|
|
first_link?: Text;
|
|
more?: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
if (Reflect.has(data, 'firstLink')) {
|
|
this.first_link = Text.fromAttributed(data.firstLink);
|
|
}
|
|
|
|
if (Reflect.has(data, 'more')) {
|
|
this.more = Text.fromAttributed(data.more);
|
|
}
|
|
}
|
|
} |