mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
chore: v3.0.0 release
This commit is contained in:
20
deno/src/parser/classes/WatchNextEndScreen.ts
Normal file
20
deno/src/parser/classes/WatchNextEndScreen.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import Parser from '../index.ts';
|
||||
import Text from './misc/Text.ts';
|
||||
import EndScreenVideo from './EndScreenVideo.ts';
|
||||
import EndScreenPlaylist from './EndScreenPlaylist.ts';
|
||||
import { YTNode } from '../helpers.ts';
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user