java.lang.Object
it.auties.whatsapp.model.info.QuotedMessageInfo
- All Implemented Interfaces:
Info,MessageInfo
An immutable model class that represents a quoted message
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuotedMessageInfo(String id, Chat chat, Contact sender, MessageContainer message) -
Method Summary
Modifier and TypeMethodDescriptionchat()id()message()static Optional<QuotedMessageInfo> of(ContextInfo contextInfo) Constructs a quoted message from a context infosender()Returns the sender of this messageReturns the sender's jidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.info.MessageInfo
toJson
-
Field Details
-
id
The id of the message -
chat
The chat of the message -
sender
The sender of the message -
message
The message
-
-
Constructor Details
-
QuotedMessageInfo
-
-
Method Details
-
of
Constructs a quoted message from a context info- Parameters:
contextInfo- the non-null context info- Returns:
- an optional quoted message
-
parentJid
- Specified by:
parentJidin interfaceMessageInfo
-
senderJid
Returns the sender's jid- Specified by:
senderJidin interfaceMessageInfo- Returns:
- a jid
-
sender
Returns the sender of this message- Returns:
- an optional
-
id
- Specified by:
idin interfaceMessageInfo
-
chat
-
message
- Specified by:
messagein interfaceMessageInfo
-
timestampSeconds
- Specified by:
timestampSecondsin interfaceMessageInfo
-