Module it.auties.cobalt
Record Class DeviceSentMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.server.DeviceSentMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message,ServerMessage
public record DeviceSentMessage(Jid destinationJid, MessageContainer message, Optional<String> phash)
extends Record
implements ServerMessage
A model class that represents a message that refers to a message sent by the device paired with
the active WhatsappWeb session.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JidThe field for thedestinationJidrecord component.private final MessageContainerThe field for themessagerecord component.The field for thephashrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceSentMessage(Jid destinationJid, MessageContainer message, Optional<String> phash) Creates an instance of aDeviceSentMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationJidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.phash()Returns the value of thephashrecord component.final StringtoString()Returns a string representation of this record class.type()Return message typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.message.model.ServerMessage
category
-
Field Details
-
destinationJid
The field for thedestinationJidrecord component. -
message
The field for themessagerecord component. -
phash
The field for thephashrecord component.
-
-
Constructor Details
-
DeviceSentMessage
Creates an instance of aDeviceSentMessagerecord class.- Parameters:
destinationJid- the value for thedestinationJidrecord componentmessage- the value for themessagerecord componentphash- the value for thephashrecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
destinationJid
Returns the value of thedestinationJidrecord component.- Returns:
- the value of the
destinationJidrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
phash
Returns the value of thephashrecord component.- Returns:
- the value of the
phashrecord component
-