Package com.azure.communication.common
Class CommunicationUserIdentifier
java.lang.Object
com.azure.communication.common.CommunicationIdentifier
com.azure.communication.common.CommunicationUserIdentifier
Communication identifier for Communication Services Users
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a CommunicationUserIdentifier object -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Get id of the communication user.inthashCode()protected CommunicationUserIdentifierSet 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
-
CommunicationUserIdentifier
Creates a CommunicationUserIdentifier object- Parameters:
id- id of the communication user.- Throws:
IllegalArgumentException- thrown if id parameter fail the validation.
-
-
Method Details
-
getId
Get id of the communication user.- Returns:
- id of the communication user.
-
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:
- CommunicationUserIdentifier object itself
-
equals
- Overrides:
equalsin classCommunicationIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCodein classCommunicationIdentifier
-