Files
YouTube.js/lib/parser/classes/DownloadButton.js
LuanRT 68cb841c00 refactor!: finish parser migration
Finally! :)

This removes all code related to the old parser.

#65
2022-07-11 06:19:10 -03:00

16 lines
338 B
JavaScript

'use strict';
const NavigationEndpoint = require('./NavigationEndpoint');
class DownloadButton {
type = 'DownloadButton';
constructor(data) {
this.style = data.style;
this.size = data.size;
this.endpoint = new NavigationEndpoint(data.command);
this.target_id = data.targetId;
}
}
module.exports = DownloadButton;