Class AcsChatMessageEventBaseProperties
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
- Direct Known Subclasses:
AcsChatMessageDeletedEventData
,AcsChatMessageEditedEventData
,AcsChatMessageReceivedEventData
Schema of common properties of all chat message events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the composeTime property: The original compose time of the message.Get the messageId property: The chat message id.Get the senderCommunicationIdentifier property: The communication identifier of the sender.Get the senderDisplayName property: The display name of the sender.getType()
Get the type property: The type of the message.Get the version property: The version of the message.setComposeTime
(OffsetDateTime composeTime) Set the composeTime property: The original compose time of the message.setMessageId
(String messageId) Set the messageId property: The chat message id.setRecipientCommunicationIdentifier
(CommunicationIdentifierModel recipientCommunicationIdentifier) Set the recipientCommunicationIdentifier property: The communication identifier of the target user.setSenderCommunicationIdentifier
(CommunicationIdentifierModel senderCommunicationIdentifier) Set the senderCommunicationIdentifier property: The communication identifier of the sender.setSenderDisplayName
(String senderDisplayName) Set the senderDisplayName property: The display name of the sender.setThreadId
(String threadId) Set the threadId property: The chat thread id.setTransactionId
(String transactionId) Set the transactionId property: The transaction id will be used as co-relation vector.Set the type property: The type of the message.setVersion
(Long version) Set the version property: The version of the message.Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
getRecipientCommunicationIdentifier, getThreadId, getTransactionId
-
Constructor Details
-
AcsChatMessageEventBaseProperties
public AcsChatMessageEventBaseProperties()
-
-
Method Details
-
getMessageId
Get the messageId property: The chat message id.- Returns:
- the messageId value.
-
setMessageId
Set the messageId property: The chat message id.- Parameters:
messageId
- the messageId value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getSenderCommunicationIdentifier
Get the senderCommunicationIdentifier property: The communication identifier of the sender.- Returns:
- the senderCommunicationIdentifier value.
-
setSenderCommunicationIdentifier
public AcsChatMessageEventBaseProperties setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier) Set the senderCommunicationIdentifier property: The communication identifier of the sender.- Parameters:
senderCommunicationIdentifier
- the senderCommunicationIdentifier value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getSenderDisplayName
Get the senderDisplayName property: The display name of the sender.- Returns:
- the senderDisplayName value.
-
setSenderDisplayName
Set the senderDisplayName property: The display name of the sender.- Parameters:
senderDisplayName
- the senderDisplayName value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getComposeTime
Get the composeTime property: The original compose time of the message.- Returns:
- the composeTime value.
-
setComposeTime
Set the composeTime property: The original compose time of the message.- Parameters:
composeTime
- the composeTime value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getType
Get the type property: The type of the message.- Returns:
- the type value.
-
setType
Set the type property: The type of the message.- Parameters:
type
- the type value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getVersion
Get the version property: The version of the message.- Returns:
- the version value.
-
setVersion
Set the version property: The version of the message.- Parameters:
version
- the version value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setRecipientCommunicationIdentifier
public AcsChatMessageEventBaseProperties setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier) Set the recipientCommunicationIdentifier property: The communication identifier of the target user.- Overrides:
setRecipientCommunicationIdentifier
in classAcsChatEventBaseProperties
- Parameters:
recipientCommunicationIdentifier
- the recipientCommunicationIdentifier value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setTransactionId
Set the transactionId property: The transaction id will be used as co-relation vector.- Overrides:
setTransactionId
in classAcsChatEventBaseProperties
- Parameters:
transactionId
- the transactionId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setThreadId
Set the threadId property: The chat thread id.- Overrides:
setThreadId
in classAcsChatEventBaseProperties
- Parameters:
threadId
- the threadId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-