import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../src/AbstractCall"; import {Service} from "../../src/Service"; import {Timeslot} from "../database/ObjectInterfaces"; export class ParticipateInPollCall extends AbstractCall { getRequestName(): string { return ParticipateInPollCall.NAME; } getService(): Service { return Service.POLL; } } export module ParticipateInPollCall{ export const NAME = "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 } }