mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 14:08:06 +00:00
26 lines
857 B
TypeScript
26 lines
857 B
TypeScript
import { Parser } from '../../index.js';
|
|
import Button from '../Button.js';
|
|
import Text from '../misc/Text.js';
|
|
import Thumbnail from '../misc/Thumbnail.js';
|
|
|
|
import { YTNode } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
|
|
export default class CommentReplyDialog extends YTNode {
|
|
static type = 'CommentReplyDialog';
|
|
|
|
reply_button: Button | null;
|
|
cancel_button: Button | null;
|
|
author_thumbnail: Thumbnail[];
|
|
placeholder: Text;
|
|
error_message: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.reply_button = Parser.parseItem(data.replyButton, Button);
|
|
this.cancel_button = Parser.parseItem(data.cancelButton, Button);
|
|
this.author_thumbnail = Thumbnail.fromResponse(data.authorThumbnail);
|
|
this.placeholder = new Text(data.placeholderText);
|
|
this.error_message = new Text(data.errorMessage);
|
|
}
|
|
} |