import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; import {ParticipantSkeleton} from "../ObjectSkeletons"; import {Participant} from "../ObjectInterfaces"; /** * The call to update an participant and his timeslots. */ export class DBUpdateParticipantCall extends AbstractCall { getRequestName(): string { return DBUpdateParticipantCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBUpdateParticipantCall}. */ export module DBUpdateParticipantCall { export const NAME = "DB_UPDATE_PARTICIPANT_CALL"; export interface RequestModel extends BaseRequestPayload{ participant_id : any participant : ParticipantSkeleton } export interface ResponseModel extends BaseResponsePayload{ updated_participant: Participant } }