mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 23:09:28 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
16
lib/parser/classes/DownloadButton.js
Normal file
16
lib/parser/classes/DownloadButton.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user