mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
18 lines
551 B
JavaScript
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; |