mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 15:52:13 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
18
lib/parser/classes/comments/CommentsEntryPointHeader.js
Normal file
18
lib/parser/classes/comments/CommentsEntryPointHeader.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
const Text = require('../Text');
|
||||
const Thumbnail = require('../Thumbnail');
|
||||
|
||||
class CommentsEntryPointHeader {
|
||||
type = 'CommentsEntryPointHeader';
|
||||
|
||||
constructor(data) {
|
||||
this.header = new Text(data.headerText);
|
||||
this.comment_count = new Text(data.commentCount);
|
||||
this.teaser_avatar = Thumbnail.fromResponse(data.teaserAvatar || data.simpleboxAvatar);
|
||||
this.teaser_content = new Text(data.teaserContent);
|
||||
this.simplebox_placeholder = new Text(data.simpleboxPlaceholder);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CommentsEntryPointHeader;
|
||||
Reference in New Issue
Block a user