mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
import { CommunityUser } from './CommunityUser'
|
|
import { IdentifierSeed } from './IdentifierSeed'
|
|
|
|
export class UserIdentifier {
|
|
communityUuid: string
|
|
communityUser?: CommunityUser
|
|
seed?: IdentifierSeed // used for deferred transfers
|
|
|
|
constructor(communityUuid: string, input: CommunityUser | IdentifierSeed) {
|
|
if (input instanceof CommunityUser) {
|
|
this.communityUser = input
|
|
} else if (input instanceof IdentifierSeed) {
|
|
this.seed = input
|
|
}
|
|
this.communityUuid = communityUuid
|
|
}
|
|
}
|