Changeset View
Changeset View
Standalone View
Standalone View
src/app/_models/auth.ts
export class Auth { | export class Auth { | ||||
static parse(obj: any) { | static parse(obj: any) { | ||||
return new Auth(); | return new Auth(); | ||||
} | } | ||||
getError(): AuthError { | getError(): AuthError { | ||||
return null; | return null; | ||||
} | } | ||||
} | } | ||||
export class AuthError extends Auth { | export class AuthError extends Auth { | ||||
constructor( | constructor( | ||||
public non_field_errors?: string[], | public non_field_errors?: string[], | ||||
public _username?: string[], | public username?: string[], | ||||
public _password?: string[] | public password?: string[] | ||||
) { super(); } | ) { super(); } | ||||
getError(): AuthError { | getError(): AuthError { | ||||
return this; | return this; | ||||
} | } | ||||
} | } |