mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
21 lines
459 B
TypeScript
21 lines
459 B
TypeScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class PlaylistVideoList extends YTNode {
|
|
static type = 'PlaylistVideoList';
|
|
|
|
id: string;
|
|
is_editable: boolean;
|
|
can_reorder: boolean;
|
|
videos;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.id = data.playlistId;
|
|
this.is_editable = data.isEditable;
|
|
this.can_reorder = data.canReorder;
|
|
this.videos = Parser.parse(data.contents);
|
|
}
|
|
}
|
|
|
|
export default PlaylistVideoList; |