Package com.azure.communication.common
Class MicrosoftTeamsAppIdentifier
java.lang.Object
com.azure.communication.common.CommunicationIdentifier
com.azure.communication.common.MicrosoftTeamsAppIdentifier
Communication identifier for Microsoft Teams Application
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a MicrosoftTeamsAppIdentifier objectMicrosoftTeamsAppIdentifier(String appId, CommunicationCloudEnvironment cloudEnvironment) Creates a MicrosoftTeamsAppIdentifier object -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAppId()Get application IDGet cloud environment of the application identifierinthashCode()protected MicrosoftTeamsAppIdentifierSet 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.communication.common.CommunicationIdentifier
fromRawId, getRawId
-
Constructor Details
-
MicrosoftTeamsAppIdentifier
Creates a MicrosoftTeamsAppIdentifier object- Parameters:
appId- ID of the Microsoft Teams Application.cloudEnvironment- the cloud environment in which this identifier is created.- Throws:
IllegalArgumentException- thrown if appId parameter fails the validation.
-
MicrosoftTeamsAppIdentifier
Creates a MicrosoftTeamsAppIdentifier object- Parameters:
appId- ID of the Microsoft Teams Application.- Throws:
IllegalArgumentException- thrown if appId parameter fails the validation.
-
-
Method Details
-
getAppId
Get application ID- Returns:
- ID of the Microsoft Teams Application.
-
getCloudEnvironment
Get cloud environment of the application identifier- Returns:
- cloud environment in which this identifier is created.
-
setRawId
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:
- MicrosoftTeamsAppIdentifier object itself.
-
equals
- Overrides:
equalsin classCommunicationIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCodein classCommunicationIdentifier
-