/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import Message, { type IMessage } from './../../../message'; import type { IDescriptorBody } from '../../../descriptor'; import { type ICommentThreadAddedComment } from '../../descriptors/commentthreadaddedcomment'; export interface IAddedComment { commentId: string; createdAt: string; } export interface IAddCommentThreadResponse extends IMessage { commentThreadId: string; createdAt: string; comments: IAddedComment[]; } export default class AddCommentThreadResponse extends Message { readonly commentThreadId: string; comments: ICommentThreadAddedComment[]; readonly createdAt: Date; static readonly DESCRIPTOR_NAME: string; static readonly DESCRIPTOR: IDescriptorBody; constructor(commentThreadId: string, createdAt: string, comments?: ICommentThreadAddedComment[]); toJSON(): IAddCommentThreadResponse; static fromJSON(data: IAddCommentThreadResponse): AddCommentThreadResponse; }