mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
17 lines
373 B
JavaScript
17 lines
373 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class Tab {
|
|
type = 'Tab';
|
|
|
|
constructor(data) {
|
|
this.title = data.title || 'N/A';
|
|
this.selected = data.selected || false;
|
|
this.endpoint = new NavigationEndpoint(data.endpoint);
|
|
this.content = Parser.parse(data.content);
|
|
}
|
|
}
|
|
|
|
module.exports = Tab; |