import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; import {Poll} from "../ObjectInterfaces"; /** * The call to get all polls which an user participate in or participated in. */ export class DBParticipatedPollsCall extends AbstractCall { getRequestName(): string { return DBParticipatedPollsCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBParticipatedPollsCall}. */ export module DBParticipatedPollsCall { export const NAME = "DB_PARTICIPATED_POLLS_CALL"; export interface RequestModel extends BaseRequestPayload { user_id: any } export interface ResponseModel extends BaseResponsePayload{ polls : Poll[] } }