mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
18 lines
587 B
TypeScript
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
|
|
}
|
|
}
|