Class CommunicationIdentifier
- java.lang.Object
-
- com.azure.android.communication.common.CommunicationIdentifier
-
- Direct Known Subclasses:
CommunicationUserIdentifier,MicrosoftTeamsAppIdentifier,MicrosoftTeamsUserIdentifier,PhoneNumberIdentifier,TeamsExtensionUserIdentifier,UnknownIdentifier
public abstract class CommunicationIdentifier extends java.lang.ObjectCommon communication identifier for Communication Services
-
-
Constructor Summary
Constructors Constructor Description CommunicationIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object that)static CommunicationIdentifierfromRawId(java.lang.String rawId)When storing rawIds, use this function to restore the identifier that was encoded in the rawId.java.lang.StringgetRawId()Returns the rawId for a given CommunicationIdentifier.inthashCode()protected CommunicationIdentifiersetRawId(java.lang.String rawId)Set full id of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.
-
-
-
Method Detail
-
fromRawId
public static CommunicationIdentifier fromRawId(java.lang.String rawId)
When storing rawIds, use this function to restore the identifier that was encoded in the rawId.- Parameters:
rawId- raw id.- Returns:
- CommunicationIdentifier
- Throws:
java.lang.IllegalArgumentException- raw id is null or empty.
-
getRawId
public java.lang.String 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
protected CommunicationIdentifier setRawId(java.lang.String rawId)
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
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-