mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
21 lines
667 B
TypeScript
21 lines
667 B
TypeScript
import { AbstractLoggingView } from '@logging/AbstractLogging.view'
|
|
|
|
import { SendCoinsResult } from '@/federation/client/1_0/model/SendCoinsResult'
|
|
|
|
export class SendCoinsResultLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: SendCoinsResult) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
vote: this.self.vote,
|
|
recipGradidoID: this.self.recipGradidoID,
|
|
recipFirstName: this.self.recipFirstName?.substring(0, 3),
|
|
recipLastName: this.self.recipLastName?.substring(0, 3),
|
|
recipAlias: this.self.recipAlias?.substring(0, 3),
|
|
}
|
|
}
|
|
}
|