mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
19 lines
607 B
TypeScript
19 lines
607 B
TypeScript
import { GradidoTransfer } from '@/data/proto/3_3/GradidoTransfer'
|
|
|
|
import { AbstractLoggingView } from './AbstractLogging.view'
|
|
import { TransferAmountLoggingView } from './TransferAmountLogging.view'
|
|
|
|
export class GradidoTransferLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: GradidoTransfer) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
sender: new TransferAmountLoggingView(this.self.sender),
|
|
recipient: Buffer.from(this.self.recipient).toString(this.bufferStringFormat),
|
|
}
|
|
}
|
|
}
|