Class MicrosoftTeamsUserIdentifier
- java.lang.Object
-
- com.azure.android.communication.common.CommunicationIdentifier
-
- com.azure.android.communication.common.MicrosoftTeamsUserIdentifier
-
public final class MicrosoftTeamsUserIdentifier extends CommunicationIdentifier
Communication identifier for Microsoft Teams User
-
-
Constructor Summary
Constructors Constructor Description MicrosoftTeamsUserIdentifier(java.lang.String userId)Creates a MicrosoftTeamsUserIdentifier objectMicrosoftTeamsUserIdentifier(java.lang.String userId, boolean isAnonymous)Creates a MicrosoftTeamsUserIdentifier object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object that)CommunicationCloudEnvironmentgetCloudEnvironment()Get cloud environment of the Teams user identifierjava.lang.StringgetUserId()Get Teams User IdinthashCode()booleanisAnonymous()MicrosoftTeamsUserIdentifiersetCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)Set cloud environment of the Teams user identifierMicrosoftTeamsUserIdentifiersetRawId(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.-
Methods inherited from class com.azure.android.communication.common.CommunicationIdentifier
fromRawId, getRawId
-
-
-
-
Constructor Detail
-
MicrosoftTeamsUserIdentifier
public MicrosoftTeamsUserIdentifier(java.lang.String userId, boolean isAnonymous)Creates a MicrosoftTeamsUserIdentifier object- Parameters:
userId- Id of the Microsoft Teams user. If the user isn't anonymous, the id is the Entra ID object id of the user.isAnonymous- set this to true if the user is anonymous, for example when joining a meeting with a share link- Throws:
java.lang.IllegalArgumentException- thrown if userId parameter fail the validation.
-
MicrosoftTeamsUserIdentifier
public MicrosoftTeamsUserIdentifier(java.lang.String userId)
Creates a MicrosoftTeamsUserIdentifier object- Parameters:
userId- Id of the Microsoft Teams user. If the user isn't anonymous, the id is the Entra ID object id of the user.- Throws:
java.lang.IllegalArgumentException- thrown if userId parameter fail the validation.
-
-
Method Detail
-
getUserId
public java.lang.String getUserId()
Get Teams User Id- Returns:
- userId Id of the Microsoft Teams user. If the user isn't anonymous, the id is the AAD object id of the user.
-
isAnonymous
public boolean isAnonymous()
- Returns:
- True if the user is anonymous, for example when joining a meeting with a share link.
-
setCloudEnvironment
public MicrosoftTeamsUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
Set cloud environment of the Teams user identifier- Parameters:
cloudEnvironment- the cloud environment in which this identifier is created- Returns:
- this object
-
getCloudEnvironment
public CommunicationCloudEnvironment getCloudEnvironment()
Get cloud environment of the Teams user identifier- Returns:
- cloud environment in which this identifier is created
-
setRawId
public 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.- Overrides:
setRawIdin classCommunicationIdentifier- Parameters:
rawId- full id of the identifier- Returns:
- MicrosoftTeamsUserIdentifier object itself
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classCommunicationIdentifier
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCommunicationIdentifier
-
-