import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; /** * The call to create a new comment. */ export class DBCreateCommentCall extends AbstractCall { getRequestName(): string { return DBCreateCommentCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBCreateCommentCall}. */ export module DBCreateCommentCall { export const NAME = "DB_CREATE_COMMENT_CALL"; export interface RequestModel extends BaseRequestPayload{ participant_id : any comment : string } export interface ResponseModel extends BaseResponsePayload{ comment_id : any } }