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
ConstructorDescriptionCreates a CommunicationUserIdentifier object -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Get id of the communication user.int
hashCode()
protected CommunicationUserIdentifier
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 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:
setRawId
in classCommunicationIdentifier
- Parameters:
rawId
- full id of the identifier- Returns:
- CommunicationUserIdentifier object itself
-
equals
- Overrides:
equals
in classCommunicationIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCommunicationIdentifier
-