mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
16 lines
335 B
JavaScript
16 lines
335 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const Text = require('./Text');
|
|
|
|
class CardCollection {
|
|
type = 'CardCollection';
|
|
|
|
constructor(data) {
|
|
this.cards = Parser.parse(data.cards);
|
|
this.header = new Text(data.headerText);
|
|
this.allow_teaser_dismiss = data.allowTeaserDismiss;
|
|
}
|
|
}
|
|
|
|
module.exports = CardCollection; |