import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; import {Poll} from "../ObjectInterfaces"; /** * The call to get a poll. */ export class DBGetPollCall extends AbstractCall { getRequestName(): string { return DBGetPollCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBGetPollCall}. */ export module DBGetPollCall { export const NAME = "DB_GET_POLL_CALL"; export interface RequestModel extends BaseRequestPayload{ poll_id : any } export interface ResponseModel extends BaseResponsePayload { poll : Poll } }