Files
YouTube.js/lib/parser/classes/comments/CommentsEntryPointHeader.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

18 lines
551 B
JavaScript

'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;