gradido/federation/src/graphql/api/1_0/logger/GetPublicCommunityInfoResultLogging.view.ts
2025-06-17 02:27:46 +02:00

19 lines
580 B
TypeScript

import { GetPublicCommunityInfoResult } from '@/graphql/api/1_0/model/GetPublicCommunityInfoResult'
import { AbstractLoggingView } from 'database'
export class GetPublicCommunityInfoResultLoggingView extends AbstractLoggingView {
public constructor(private self: GetPublicCommunityInfoResult) {
super()
}
public toJSON(): any {
return {
name: this.self.name,
description: this.self.description,
creationDate: this.dateToString(this.self.creationDate),
publicKey: this.self.publicKey,
publicJwtKey: this.self.publicJwtKey,
}
}
}