Class MicrosoftTeamsUserIdentifier
java.lang.Object
com.azure.android.communication.common.CommunicationIdentifier
com.azure.android.communication.common.MicrosoftTeamsUserIdentifier
Communication identifier for Microsoft Teams User
-
Field Summary
Fields inherited from class com.azure.android.communication.common.CommunicationIdentifier
rawId
-
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftTeamsUserIdentifier
(String userId) Creates a MicrosoftTeamsUserIdentifier objectMicrosoftTeamsUserIdentifier
(String userId, boolean isAnonymous) Creates a MicrosoftTeamsUserIdentifier object -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get cloud environment of the Teams user identifierGet Teams User Idint
hashCode()
boolean
setCloudEnvironment
(CommunicationCloudEnvironment cloudEnvironment) Set cloud environment of the Teams user identifierSet full id of the identifierMethods inherited from class com.azure.android.communication.common.CommunicationIdentifier
fromRawId, getRawId
-
Constructor Details
-
MicrosoftTeamsUserIdentifier
Creates a MicrosoftTeamsUserIdentifier object- Parameters:
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 link- Throws:
IllegalArgumentException
- thrown if userId parameter fail the validation.
-
MicrosoftTeamsUserIdentifier
Creates a MicrosoftTeamsUserIdentifier object- Parameters:
userId
- Id of the Microsoft Teams user. If the user isn't anonymous, the id is the AAD object id of the user.- Throws:
IllegalArgumentException
- thrown if userId parameter fail the validation.
-
-
Method Details
-
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
Get cloud environment of the Teams user identifier- Returns:
- cloud environment in which this identifier is created
-
setRawId
Set full id of the identifier- Parameters:
rawId
- full id of the identifier- Returns:
- CommunicationIdentifier object itself
-
equals
- Overrides:
equals
in classCommunicationIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCommunicationIdentifier
-