mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import { AbstractLoggingView } from '@logging/AbstractLogging.view'
|
|
|
|
import { Decay } from '@/graphql/model/Decay'
|
|
|
|
export class DecayLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: Decay) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
balance: this.decimalToString(this.self.balance),
|
|
decay: this.decimalToString(this.self.decay),
|
|
roundedDecay: this.decimalToString(this.self.roundedDecay),
|
|
start: this.dateToString(this.self.start),
|
|
end: this.dateToString(this.self.end),
|
|
duration: this.self.duration,
|
|
}
|
|
}
|
|
}
|