mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
16 lines
363 B
JavaScript
16 lines
363 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class CompactLink {
|
|
type = 'CompactLink';
|
|
|
|
constructor(data) {
|
|
this.title = new Text(data.title).toString(); a
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
this.style = data.style;
|
|
}
|
|
}
|
|
|
|
module.exports = CompactLink; |