mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
25 lines
861 B
TypeScript
25 lines
861 B
TypeScript
import { FederatedCommunity } from '../entity/FederatedCommunity'
|
|
import { AbstractLoggingView } from './AbstractLogging.view'
|
|
|
|
export class FederatedCommunityLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: FederatedCommunity) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
id: this.self.id,
|
|
foreign: this.self.foreign,
|
|
publicKey: this.self.publicKey.toString(this.bufferStringFormat),
|
|
apiVersion: this.self.apiVersion,
|
|
endPoint: this.self.endPoint,
|
|
lastAnnouncedAt: this.dateToString(this.self.lastAnnouncedAt),
|
|
verifiedAt: this.self.verifiedAt,
|
|
lastErrorAt: this.self.lastErrorAt,
|
|
createdAt: this.dateToString(this.self.createdAt),
|
|
updatedAt: this.dateToString(this.self.updatedAt),
|
|
}
|
|
}
|
|
}
|