mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
19 lines
438 B
TypeScript
19 lines
438 B
TypeScript
import { AbstractLoggingView } from 'database'
|
|
|
|
import { Balance } from '@/graphql/model/Balance'
|
|
|
|
export class BalanceLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: Balance) {
|
|
super()
|
|
}
|
|
|
|
public toJSON(): any {
|
|
return {
|
|
balance: this.decimalToString(this.self.balance),
|
|
balanceGDT: this.self.balanceGDT,
|
|
count: this.self.count,
|
|
linkCount: this.self.linkCount,
|
|
}
|
|
}
|
|
}
|