import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; import {User} from "../ObjectInterfaces"; /** * The call to find a user and all information about him. */ export class DBUserInfoCall extends AbstractCall { getRequestName(): string { return DBUserInfoCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBUserInfoCall}. */ export module DBUserInfoCall { export const NAME = "DB_USER_INFO_CALL"; export interface RequestModel extends BaseRequestPayload{ user_id : any } export interface ResponseModel extends BaseResponsePayload{ user : User } }