import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; import {CommentSkeleton} from "../ObjectSkeletons"; import {Comment} from "../ObjectInterfaces" /** * The call to update a comment. */ export class DBUpdateCommentCall extends AbstractCall { getRequestName(): string { return DBUpdateCommentCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBUpdateCommentCall}. */ export module DBUpdateCommentCall { export const NAME = "DB_UPDATE_COMMENT_CALL"; export interface RequestModel extends BaseRequestPayload{ comment_id : any comment : CommentSkeleton } export interface ResponseModel extends BaseResponsePayload{ updated_comment : Comment } }