AcsChatEventBaseProperties Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties

Implements

public class AcsChatEventBaseProperties
implements JsonSerializable<AcsChatEventBaseProperties>

Schema of common properties of all chat events.

Constructor Summary

Constructor Description
AcsChatEventBaseProperties()

Creates an instance of AcsChatEventBaseProperties class.

Method Summary

Modifier and Type Method and Description
static AcsChatEventBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of AcsChatEventBaseProperties from the JsonReader.

CommunicationIdentifierModel getRecipientCommunicationIdentifier()

Get the recipientCommunicationIdentifier property: The communication identifier of the target user.

String getThreadId()

Get the threadId property: The chat thread id.

String getTransactionId()

Get the transactionId property: The transaction id will be used as co-relation vector.

AcsChatEventBaseProperties setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)

Set the recipientCommunicationIdentifier property: The communication identifier of the target user.

AcsChatEventBaseProperties setThreadId(String threadId)

Set the threadId property: The chat thread id.

AcsChatEventBaseProperties setTransactionId(String transactionId)

Set the transactionId property: The transaction id will be used as co-relation vector.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AcsChatEventBaseProperties

public AcsChatEventBaseProperties()

Creates an instance of AcsChatEventBaseProperties class.

Method Details

fromJson

public static AcsChatEventBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of AcsChatEventBaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AcsChatEventBaseProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AcsChatEventBaseProperties.

getRecipientCommunicationIdentifier

public CommunicationIdentifierModel getRecipientCommunicationIdentifier()

Get the recipientCommunicationIdentifier property: The communication identifier of the target user.

Returns:

the recipientCommunicationIdentifier value.

getThreadId

public String getThreadId()

Get the threadId property: The chat thread id.

Returns:

the threadId value.

getTransactionId

public String getTransactionId()

Get the transactionId property: The transaction id will be used as co-relation vector.

Returns:

the transactionId value.

setRecipientCommunicationIdentifier

public AcsChatEventBaseProperties setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)

Set the recipientCommunicationIdentifier property: The communication identifier of the target user.

Parameters:

recipientCommunicationIdentifier - the recipientCommunicationIdentifier value to set.

Returns:

the AcsChatEventBaseProperties object itself.

setThreadId

public AcsChatEventBaseProperties setThreadId(String threadId)

Set the threadId property: The chat thread id.

Parameters:

threadId - the threadId value to set.

Returns:

the AcsChatEventBaseProperties object itself.

setTransactionId

public AcsChatEventBaseProperties setTransactionId(String transactionId)

Set the transactionId property: The transaction id will be used as co-relation vector.

Parameters:

transactionId - the transactionId value to set.

Returns:

the AcsChatEventBaseProperties object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to