Dela via


CommunicationIdentifier Class

  • java.lang.Object
    • com.azure.communication.common.CommunicationIdentifier

public abstract class CommunicationIdentifier

Common communication identifier for Communication Services

Constructor Summary

Constructor Description
CommunicationIdentifier()

Method Summary

Modifier and Type Method and Description
boolean equals(Object that)
static CommunicationIdentifier fromRawId(String rawId)

When storing rawIds, use this function to restore the identifier that was encoded in the rawId.

String getRawId()

Returns the rawId for a given CommunicationIdentifier.

int hashCode()
protected CommunicationIdentifier 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.

Methods inherited from java.lang.Object

Constructor Details

CommunicationIdentifier

public CommunicationIdentifier()

Method Details

equals

public boolean equals(Object that)

Overrides:

CommunicationIdentifier.equals(Object that)

Parameters:

that

fromRawId

public static CommunicationIdentifier fromRawId(String rawId)

When storing rawIds, use this function to restore the identifier that was encoded in the rawId.

Parameters:

rawId - raw id.

Returns:

CommunicationIdentifier

getRawId

public 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

hashCode

public int hashCode()

Overrides:

CommunicationIdentifier.hashCode()

setRawId

protected CommunicationIdentifier 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.

Parameters:

rawId - full id of the identifier

Returns:

CommunicationIdentifier object itself

Applies to