import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; /** * The call to create an new participant which participates in a poll. */ export class DBParticipateInPollCall extends AbstractCall { getRequestName(): string { return DBParticipateInPollCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBParticipateInPollCall}. */ export module DBParticipateInPollCall { export const NAME = "DB_PARTICIPATE_IN_POLL_CALL"; export interface RequestModel extends BaseRequestPayload{ poll_id : any user_id? : any name : string timeslots : {start_date: Date, end_date: Date}[] } export interface ResponseModel extends BaseResponsePayload{ participant_id: any } }