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