@duell10111/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
23 lines • 847 B
JavaScript
import { YTNode } from '../helpers.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
import NavigationEndpoint from './NavigationEndpoint.js';
export default class CommentsEntryPoint extends YTNode {
static type = 'CommentsEntryPoint';
author_thumbnail;
author_text;
content_text;
header_text;
comment_count;
endpoint;
constructor(data) {
super();
this.author_thumbnail = Thumbnail.fromResponse(data.authorThumbnail);
this.author_text = new Text(data.authorText);
this.content_text = new Text(data.contentText);
this.header_text = new Text(data.headerText);
this.comment_count = new Text(data.commentCount);
this.endpoint = new NavigationEndpoint(data.onSelectCommand);
}
}
//# sourceMappingURL=CommentsEntryPoint.js.map