Class CommunicationIdentifier
java.lang.Object
com.azure.android.communication.common.CommunicationIdentifier
- Direct Known Subclasses:
CommunicationUserIdentifier
,MicrosoftTeamsUserIdentifier
,PhoneNumberIdentifier
,UnknownIdentifier
Common communication identifier for Communication Services
-
Field Summary
Fields -
Constructor Summary
Constructors -
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()
-
Field Details
-
rawId
-
-
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
-
equals
-
hashCode
public int hashCode()
-