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