mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
20 lines
593 B
TypeScript
20 lines
593 B
TypeScript
import { AbstractLoggingView } from '@logging/AbstractLogging.view'
|
|
|
|
import { PublicCommunityInfo } from '@/federation/client/1_0/model/PublicCommunityInfo'
|
|
|
|
export class PublicCommunityInfoLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: PublicCommunityInfo) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
name: this.self.name,
|
|
description: this.self.description,
|
|
creationDate: this.dateToString(this.self.creationDate),
|
|
publicKey: this.self.publicKey,
|
|
}
|
|
}
|
|
}
|