Changeset View
Changeset View
Standalone View
Standalone View
src/app/_models/profile.ts
Show All 19 Lines | export class Profile { | ||||
getError(): ProfileError { | getError(): ProfileError { | ||||
return null; | return null; | ||||
} | } | ||||
} | } | ||||
export class ProfileError extends Profile { | export class ProfileError extends Profile { | ||||
constructor( | constructor( | ||||
public non_field_errors?: string[], | public non_field_errors?: string[], | ||||
public _text?: string[] | public text?: string[] | ||||
) { | ) { | ||||
super(null, null, null, null, null); | super(null, null, null, null, null); | ||||
} | } | ||||
getError(): ProfileError { | getError(): ProfileError { | ||||
return this; | return this; | ||||
} | } | ||||
} | } |