PhoneNumberIdentifier Class
- java.
lang. Object - com.
azure. communication. common. CommunicationIdentifier - com.
azure. communication. common. PhoneNumberIdentifier
- com.
- com.
public final class PhoneNumberIdentifier
extends CommunicationIdentifier
Communication identifier for Communication Services Phone Numbers
Constructor Summary
Constructor | Description |
---|---|
PhoneNumberIdentifier(String phoneNumber) |
Creates a Phone |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | equals(Object that) |
String |
getAssertedId()
Gets the asserted ID for the phone number, distinguishing it from other connections made through the same number. |
String |
getPhoneNumber()
Gets the string identifier representing the object identity |
int | hashCode() |
boolean |
isAnonymous()
Checks if the phone number is anonymous, e. |
Phone |
setRawId(String rawId)
Set full id of the identifier Raw |
Methods inherited from CommunicationIdentifier
Methods inherited from java.lang.Object
Constructor Details
PhoneNumberIdentifier
public PhoneNumberIdentifier(String phoneNumber)
Creates a PhoneNumberIdentifier object
Parameters:
Method Details
equals
public boolean equals(Object that)
Overrides:
PhoneNumberIdentifier.equals(Object that)Parameters:
getAssertedId
public String getAssertedId()
Gets the asserted ID for the phone number, distinguishing it from other connections made through the same number.
Returns:
getPhoneNumber
public String getPhoneNumber()
Gets the string identifier representing the object identity
Returns:
hashCode
public int hashCode()
Overrides:
PhoneNumberIdentifier.hashCode()isAnonymous
public boolean isAnonymous()
Checks if the phone number is anonymous, e.g., used to represent a hidden caller ID.
Returns:
setRawId
public PhoneNumberIdentifier setRawId(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.
Overrides:
PhoneNumberIdentifier.setRawId(String rawId)Parameters:
Returns: