import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { IUser } from "../../../entities/user" ; import { IEmailDomain } from "../../../entities/emaildomains" ; export enum LoginResponseTypes { INCORRECTPASS , ACCOUNTNOTVERIFIED , ACCOUNTBLOCKED , SUCCESS , INVALIDINPUT } export class LoginCallBack { constructor ( public response , public userModel ? ) { } } export class Login implements IApiRequest < LoginCallBack > { public static getURL : string = Requests . LOGIN ; public URL : string = Login . getURL ; constructor ( public email , public password , public domain ) { } } export class Logout implements IApiRequest < void > { public static getURL : string = Requests . LOGOUT ; public URL : string = Logout . getURL ; }