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
460 B
TypeScript
20 lines
460 B
TypeScript
import Parser from '../index';
|
|
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class CardCollection extends YTNode {
|
|
static type = 'CardCollection';
|
|
|
|
cards;
|
|
header: Text;
|
|
allow_teaser_dismiss: boolean;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.cards = Parser.parseArray(data.cards);
|
|
this.header = new Text(data.headerText);
|
|
this.allow_teaser_dismiss = data.allowTeaserDismiss;
|
|
}
|
|
}
|
|
|
|
export default CardCollection; |