Interface ExternalSenderProvider
-
- All Known Subinterfaces:
IncomingMessengerConversationTypingStatus
,IncomingReceivedMessengerAudioDataMessage
,IncomingReceivedMessengerAudioUrlMessage
,IncomingReceivedMessengerFileDataMessage
,IncomingReceivedMessengerFileUrlMessage
,IncomingReceivedMessengerImageDataMessage
,IncomingReceivedMessengerImageUrlMessage
,IncomingReceivedMessengerMediaDataMessage
,IncomingReceivedMessengerMediaUrlMessage
,IncomingReceivedMessengerMessage
,IncomingReceivedMessengerRawMessage
,IncomingReceivedMessengerTextMessage
,IncomingReceivedMessengerVideoDataMessage
,IncomingReceivedMessengerVideoUrlMessage
public interface ExternalSenderProvider
Represents an object, that has an external sender- Since:
- 12.20
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<ContactIdentifier>
getContactIdentifier()
This method allows to define additional contact information which will be used as secondary search criteria while searching an existing contact.java.lang.String
getFromId()
A unique identifier of the sender / from of the message or status.java.lang.String
getFromName()
The name of the sender / from of the message or status.
-
-
-
Method Detail
-
getFromId
java.lang.String getFromId()
A unique identifier of the sender / from of the message or status.- Returns:
- the id of the sender / from of the message or status
- Since:
- 12.20
-
getFromName
java.lang.String getFromName()
The name of the sender / from of the message or status.- Returns:
- the name of the sender / from of the message or status
- Since:
- 12.20
-
getContactIdentifier
default java.util.Optional<ContactIdentifier> getContactIdentifier()
This method allows to define additional contact information which will be used as secondary search criteria while searching an existing contact. The attributes will be assigned to the existing or newly created contact.- Returns:
- the optional contact identifier or an empty optional if no contact identifier is provided
- Since:
- 12.20
-
-