Files
YouTube.js/deno/src/parser/classes/ReelPlayerHeader.ts
2023-12-01 03:55:35 +00:00

24 lines
800 B
TypeScript

import { type RawNode } from '../index.ts';
import { YTNode } from '../helpers.ts';
import Thumbnail from './misc/Thumbnail.ts';
import Author from './misc/Author.ts';
import Text from './misc/Text.ts';
export default class ReelPlayerHeader extends YTNode {
static type = 'ReelPlayerHeader';
reel_title_text: Text;
timestamp_text: Text;
channel_title_text: Text;
channel_thumbnail: Thumbnail[];
author: Author;
constructor(data: RawNode) {
super();
this.reel_title_text = new Text(data.reelTitleText);
this.timestamp_text = new Text(data.timestampText);
this.channel_title_text = new Text(data.channelTitleText);
this.channel_thumbnail = Thumbnail.fromResponse(data.channelThumbnail);
this.author = new Author(data.channelNavigationEndpoint, undefined);
}
}