次の方法で共有


MicrosoftTeamsUserIdentifier Class

public final class MicrosoftTeamsUserIdentifier
extends CommunicationIdentifier

Communication identifier for Microsoft Teams User

Constructor Summary

Constructor Description
MicrosoftTeamsUserIdentifier(String userId)

Creates a MicrosoftTeamsUserIdentifier object

MicrosoftTeamsUserIdentifier(String userId, boolean isAnonymous)

Creates a MicrosoftTeamsUserIdentifier object

Method Summary

Modifier and Type Method and Description
boolean equals(Object that)
CommunicationCloudEnvironment getCloudEnvironment()

Get cloud environment of the Teams user identifier

String getUserId()

Get Teams User Id

int hashCode()
boolean isAnonymous()
MicrosoftTeamsUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)

Set cloud environment of the Teams user identifier

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.

Methods inherited from CommunicationIdentifier

Methods inherited from java.lang.Object

Constructor Details

MicrosoftTeamsUserIdentifier

public MicrosoftTeamsUserIdentifier(String userId)

Creates a MicrosoftTeamsUserIdentifier object

Parameters:

userId - Id of the Microsoft Teams user. If the user isn't anonymous, the id is the Azure AD object id of the user.

MicrosoftTeamsUserIdentifier

public MicrosoftTeamsUserIdentifier(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 Azure AD 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

Method Details

equals

public boolean equals(Object that)

Overrides:

MicrosoftTeamsUserIdentifier.equals(Object that)

Parameters:

that

getCloudEnvironment

public CommunicationCloudEnvironment getCloudEnvironment()

Get cloud environment of the Teams user identifier

Returns:

cloud environment in which this identifier is created

getUserId

public String getUserId()

Get Teams User Id

Returns:

userId Id of the Microsoft Teams user. If the user isn't anonymous, the id is the Azure AD object id of the user.

hashCode

public int hashCode()

Overrides:

MicrosoftTeamsUserIdentifier.hashCode()

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

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:

rawId - full id of the identifier

Returns:

MicrosoftTeamsUserIdentifier object itself

Applies to