mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 14:38:07 +00:00
22 lines
590 B
TypeScript
22 lines
590 B
TypeScript
import Text from './misc/Text.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
|
|
export default class ChannelVideoPlayer extends YTNode {
|
|
static type = 'ChannelVideoPlayer';
|
|
|
|
id: string;
|
|
title: Text;
|
|
description: Text;
|
|
view_count: Text;
|
|
published_time: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.id = data.videoId;
|
|
this.title = new Text(data.title);
|
|
this.description = new Text(data.description);
|
|
this.view_count = new Text(data.viewCountText);
|
|
this.published_time = new Text(data.publishedTimeText);
|
|
}
|
|
} |