Package com.azure.communication.common
Class CommunicationIdentifier
java.lang.Object
com.azure.communication.common.CommunicationIdentifier
- Direct Known Subclasses:
CommunicationUserIdentifier
,MicrosoftTeamsUserIdentifier
,PhoneNumberIdentifier
,UnknownIdentifier
Common communication identifier for Communication Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static CommunicationIdentifier
When storing rawIds, use this function to restore the identifier that was encoded in the rawId.getRawId()
Returns the rawId for a given CommunicationIdentifier.int
hashCode()
protected CommunicationIdentifier
Set full id of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.
-
Constructor Details
-
CommunicationIdentifier
public CommunicationIdentifier()
-
-
Method Details
-
fromRawId
When storing rawIds, use this function to restore the identifier that was encoded in the rawId.- Parameters:
rawId
- raw id.- Returns:
- CommunicationIdentifier
- Throws:
IllegalArgumentException
- raw id is null or empty.
-
getRawId
Returns the rawId for a given CommunicationIdentifier. You can use the rawId for encoding the identifier and then use it as a key in a database.- Returns:
- raw id
-
setRawId
Set full id of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.- Parameters:
rawId
- full id of the identifier- Returns:
- CommunicationIdentifier object itself
-
equals
-
hashCode
public int hashCode()
-