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