import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../src/AbstractCall"; import {Service} from "../../src/Service"; import {Timeslot} from "../database/ObjectInterfaces"; export class SavePollCall extends AbstractCall{ getRequestName(): string { return SavePollCall.NAME; } getService(): Service { return Service.POLL; } } export module SavePollCall { export const NAME = "SAVE_POLL_CALL"; export interface RequestModel extends BaseRequestPayload{ poll_id : any poll : { title?: string start_date_poll?: Date end_date_poll?: Date displayed_dates?: Date[] exposing?: boolean location?: string timeslot_min_duration?: number password?: string cal_start?: Date cal_end?: Date cal_timesteps?: number theme?: string color_nav?: string color_content?: string color_buttons?: string logo?: string timeslots?: Timeslot[]} } export interface ResponseModel extends BaseResponsePayload{ poll_id:any } }