MicrosoftTeamsUserIdentifier Class
- java.
lang. Object - com.
azure. communication. common. CommunicationIdentifier - com.
azure. communication. common. MicrosoftTeamsUserIdentifier
- com.
- com.
public final class MicrosoftTeamsUserIdentifier
extends CommunicationIdentifier
Communication identifier for Microsoft Teams User
Constructor Summary
Constructor | Description |
---|---|
MicrosoftTeamsUserIdentifier(String userId) |
Creates a Microsoft |
MicrosoftTeamsUserIdentifier(String userId, boolean isAnonymous) |
Creates a Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | equals(Object that) |
Communication |
getCloudEnvironment()
Get cloud environment of the Teams user identifier |
String |
getUserId()
Get Teams User Id |
int | hashCode() |
boolean | isAnonymous() |
Microsoft |
setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
Set cloud environment of the Teams user identifier |
Microsoft |
setRawId(String rawId)
Set full id of the identifier Raw |
Methods inherited from CommunicationIdentifier
Methods inherited from java.lang.Object
Constructor Details
MicrosoftTeamsUserIdentifier
public MicrosoftTeamsUserIdentifier(String userId)
Creates a MicrosoftTeamsUserIdentifier object
Parameters:
MicrosoftTeamsUserIdentifier
public MicrosoftTeamsUserIdentifier(String userId, boolean isAnonymous)
Creates a MicrosoftTeamsUserIdentifier object
Parameters:
Method Details
equals
public boolean equals(Object that)
Overrides:
MicrosoftTeamsUserIdentifier.equals(Object that)Parameters:
getCloudEnvironment
public CommunicationCloudEnvironment getCloudEnvironment()
Get cloud environment of the Teams user identifier
Returns:
getUserId
public String getUserId()
Get Teams User Id
Returns:
hashCode
public int hashCode()
Overrides:
MicrosoftTeamsUserIdentifier.hashCode()isAnonymous
public boolean isAnonymous()
Returns:
setCloudEnvironment
public MicrosoftTeamsUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
Set cloud environment of the Teams user identifier
Parameters:
Returns:
setRawId
public MicrosoftTeamsUserIdentifier setRawId(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:
MicrosoftTeamsUserIdentifier.setRawId(String rawId)Parameters:
Returns:
Applies to
Azure SDK for Java