gradido/backend/src/apis/dltConnector/model/AccountIdentifier.ts
2025-09-16 07:13:02 +02:00

18 lines
587 B
TypeScript

import { CommunityAccountIdentifier } from './CommunityAccountIdentifier'
import { IdentifierSeed } from './IdentifierSeed'
export class AccountIdentifier {
communityTopicId: string
account?: CommunityAccountIdentifier
seed?: IdentifierSeed // used for deferred transfers
constructor(communityTopicId: string, input: CommunityAccountIdentifier | IdentifierSeed) {
if (input instanceof CommunityAccountIdentifier) {
this.account = input
} else if (input instanceof IdentifierSeed) {
this.seed = input
}
this.communityTopicId = communityTopicId
}
}