import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../../src/AbstractCall"; import {Service} from "../../../src/Service"; /** * The call to register an user. */ export class DBRegistrationCall extends AbstractCall { getRequestName(): string { return DBRegistrationCall.NAME; } getService(): Service { return Service.DATABASE; } } /** * Defines the structure of a {@DBRegistrationCall}. */ export module DBRegistrationCall { export const NAME = "DB_REGISTRATION_CALL"; export interface RequestModel extends BaseRequestPayload{ email: string username: string name: string surname: string hash?: string profile_image?: string firebase_id?:any } export interface ResponseModel extends BaseResponsePayload{ user_id: any } }