AcsChatParticipantRemovedFromThreadEventData Class

public final class AcsChatParticipantRemovedFromThreadEventData
extends AcsChatEventInThreadBaseProperties

Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantRemoved event.

Constructor Summary

Constructor Description
AcsChatParticipantRemovedFromThreadEventData()

Creates an instance of AcsChatParticipantRemovedFromThreadEventData class.

Method Summary

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

Reads an instance of AcsChatParticipantRemovedFromThreadEventData from the JsonReader.

AcsChatThreadParticipantProperties getParticipantRemoved()

Get the participantRemoved property: The details of the user who was removed.

CommunicationIdentifierModel getRemovedByCommunicationIdentifier()

Get the removedByCommunicationIdentifier property: The communication identifier of the user who removed the user.

OffsetDateTime getTime()

Get the time property: The time at which the user was removed to the thread.

Long getVersion()

Get the version property: The version of the thread.

AcsChatParticipantRemovedFromThreadEventData setParticipantRemoved(AcsChatThreadParticipantProperties participantRemoved)

Set the participantRemoved property: The details of the user who was removed.

AcsChatParticipantRemovedFromThreadEventData setRemovedByCommunicationIdentifier(CommunicationIdentifierModel removedByCommunicationIdentifier)

Set the removedByCommunicationIdentifier property: The communication identifier of the user who removed the user.

AcsChatParticipantRemovedFromThreadEventData setThreadId(String threadId)

Set the threadId property: The chat thread id.

AcsChatParticipantRemovedFromThreadEventData setTime(OffsetDateTime time)

Set the time property: The time at which the user was removed to the thread.

AcsChatParticipantRemovedFromThreadEventData setTransactionId(String transactionId)

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

AcsChatParticipantRemovedFromThreadEventData setVersion(Long version)

Set the version property: The version of the thread.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AcsChatEventInThreadBaseProperties

Methods inherited from java.lang.Object

Constructor Details

AcsChatParticipantRemovedFromThreadEventData

public AcsChatParticipantRemovedFromThreadEventData()

Creates an instance of AcsChatParticipantRemovedFromThreadEventData class.

Method Details

fromJson

public static AcsChatParticipantRemovedFromThreadEventData fromJson(JsonReader jsonReader)

Reads an instance of AcsChatParticipantRemovedFromThreadEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AcsChatParticipantRemovedFromThreadEventData 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 AcsChatParticipantRemovedFromThreadEventData.

getParticipantRemoved

public AcsChatThreadParticipantProperties getParticipantRemoved()

Get the participantRemoved property: The details of the user who was removed.

Returns:

the participantRemoved value.

getRemovedByCommunicationIdentifier

public CommunicationIdentifierModel getRemovedByCommunicationIdentifier()

Get the removedByCommunicationIdentifier property: The communication identifier of the user who removed the user.

Returns:

the removedByCommunicationIdentifier value.

getTime

public OffsetDateTime getTime()

Get the time property: The time at which the user was removed to the thread.

Returns:

the time value.

getVersion

public Long getVersion()

Get the version property: The version of the thread.

Returns:

the version value.

setParticipantRemoved

public AcsChatParticipantRemovedFromThreadEventData setParticipantRemoved(AcsChatThreadParticipantProperties participantRemoved)

Set the participantRemoved property: The details of the user who was removed.

Parameters:

participantRemoved - the participantRemoved value to set.

Returns:

the AcsChatParticipantRemovedFromThreadEventData object itself.

setRemovedByCommunicationIdentifier

public AcsChatParticipantRemovedFromThreadEventData setRemovedByCommunicationIdentifier(CommunicationIdentifierModel removedByCommunicationIdentifier)

Set the removedByCommunicationIdentifier property: The communication identifier of the user who removed the user.

Parameters:

removedByCommunicationIdentifier - the removedByCommunicationIdentifier value to set.

Returns:

the AcsChatParticipantRemovedFromThreadEventData object itself.

setThreadId

public AcsChatParticipantRemovedFromThreadEventData setThreadId(String threadId)

Set the threadId property: The chat thread id.

Overrides:

AcsChatParticipantRemovedFromThreadEventData.setThreadId(String threadId)

Parameters:

threadId

setTime

public AcsChatParticipantRemovedFromThreadEventData setTime(OffsetDateTime time)

Set the time property: The time at which the user was removed to the thread.

Parameters:

time - the time value to set.

Returns:

the AcsChatParticipantRemovedFromThreadEventData object itself.

setTransactionId

public AcsChatParticipantRemovedFromThreadEventData setTransactionId(String transactionId)

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

Overrides:

AcsChatParticipantRemovedFromThreadEventData.setTransactionId(String transactionId)

Parameters:

transactionId

setVersion

public AcsChatParticipantRemovedFromThreadEventData setVersion(Long version)

Set the version property: The version of the thread.

Parameters:

version - the version value to set.

Returns:

the AcsChatParticipantRemovedFromThreadEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AcsChatParticipantRemovedFromThreadEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest