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