import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; /** * The cal to login a user. */ export class DBLoginCall extends AbstractCall { getRequestName(): string { return DBLoginCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBLoginCall}. */ export module DBLoginCall { export const NAME = "DB_LOGIN_CALL"; export interface RequestModel extends BaseRequestPayload{ email: string } export interface ResponseModel extends BaseResponsePayload{ user_id: any hash: string } }