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