@duell10111/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
18 lines • 768 B
JavaScript
import { YTNode } from '../helpers.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
import NavigationEndpoint from './NavigationEndpoint.js';
class CommentsEntryPoint extends YTNode {
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);
}
}
CommentsEntryPoint.type = 'CommentsEntryPoint';
export default CommentsEntryPoint;
//# sourceMappingURL=CommentsEntryPoint.js.map