mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 15:21:54 +00:00
CardCollection, ChipCloud, Endscreen, PlayerOverlay, PlayerOverlayAutoplay, VideoSecondaryInfo and WatchNextEndScreen.
20 lines
569 B
TypeScript
20 lines
569 B
TypeScript
import Parser from '../index';
|
|
import Text from './misc/Text';
|
|
import EndScreenVideo from './EndScreenVideo';
|
|
import EndScreenPlaylist from './EndScreenPlaylist';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class WatchNextEndScreen extends YTNode {
|
|
static type = 'WatchNextEndScreen';
|
|
|
|
results;
|
|
title: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.results = Parser.parseArray<EndScreenVideo | EndScreenPlaylist>(data.results, [ EndScreenVideo, EndScreenPlaylist ]);
|
|
this.title = new Text(data.title).toString();
|
|
}
|
|
}
|
|
|
|
export default WatchNextEndScreen; |