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:
19
lib/parser/classes/comments/CommentSimplebox.js
Normal file
19
lib/parser/classes/comments/CommentSimplebox.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const Parser = require('../..');
|
||||
const Thumbnail = require('../Thumbnail');
|
||||
const Text = require('../Text');
|
||||
|
||||
class CommentSimplebox {
|
||||
type = 'CommentSimplebox';
|
||||
|
||||
constructor(data) {
|
||||
this.submit_button = Parser.parse(data.submitButton);
|
||||
this.cancel_button = Parser.parse(data.cancelButton);
|
||||
this.author_thumbnails = Thumbnail.fromResponse(data.authorThumbnail);
|
||||
this.placeholder = new Text(data.placeholderText);
|
||||
this.avatar_size = data.avatarSize;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CommentSimplebox;
|
||||
Reference in New Issue
Block a user