public final class MicrosoftTeamsUserIdentifier extends CommunicationIdentifier
Constructor and Description |
---|
MicrosoftTeamsUserIdentifier(java.lang.String userId)
Creates a MicrosoftTeamsUserIdentifier object
|
MicrosoftTeamsUserIdentifier(java.lang.String userId,
boolean isAnonymous)
Creates a MicrosoftTeamsUserIdentifier object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object that) |
CommunicationCloudEnvironment |
getCloudEnvironment()
Get cloud environment of the Teams user identifier
|
java.lang.String |
getUserId()
Get Teams User Id
|
int |
hashCode() |
boolean |
isAnonymous() |
MicrosoftTeamsUserIdentifier |
setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
Set cloud environment of the Teams user identifier
|
MicrosoftTeamsUserIdentifier |
setRawId(java.lang.String rawId)
Set full id of the identifier
RawId is the encoded format for identifiers to store in databases or as stable keys in general.
|
fromRawId, getRawId
public MicrosoftTeamsUserIdentifier(java.lang.String userId, boolean isAnonymous)
userId
- Id of the Microsoft Teams user. If the user isn't anonymous,
the id is the AAD object id of the user.isAnonymous
- set this to true if the user is anonymous,
for example when joining a meeting with a share linkjava.lang.IllegalArgumentException
- thrown if userId parameter fail the validation.public MicrosoftTeamsUserIdentifier(java.lang.String userId)
userId
- Id of the Microsoft Teams user. If the user isn't anonymous,
the id is the AAD object id of the user.java.lang.IllegalArgumentException
- thrown if userId parameter fail the validation.public java.lang.String getUserId()
public boolean isAnonymous()
public MicrosoftTeamsUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
cloudEnvironment
- the cloud environment in which this identifier is createdpublic CommunicationCloudEnvironment getCloudEnvironment()
public MicrosoftTeamsUserIdentifier setRawId(java.lang.String rawId)
setRawId
in class CommunicationIdentifier
rawId
- full id of the identifierpublic boolean equals(java.lang.Object that)
equals
in class CommunicationIdentifier
public int hashCode()
hashCode
in class CommunicationIdentifier