Skip to content
Snippets Groups Projects
create-comment.ts 448 B
Newer Older
export class CreateComment {
    type: string;
    payload: {
        roomId: string;
        creatorId: string;
        subject: string;
        body: string;
    };

    constructor(roomId: string, creatorId: string, subject: string, body: string) {
        this.type = 'CreateComment';
        this.payload = {
            roomId: roomId,
            creatorId: creatorId,
            subject: subject,
            body: body
        };
    }
}