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 Jid
The field for thedestinationJid
record component.private final MessageContainer
The field for themessage
record component.The field for thephash
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceSentMessage
(Jid destinationJid, MessageContainer message, Optional<String> phash) Creates an instance of aDeviceSentMessage
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationJid
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.phash()
Returns the value of thephash
record component.final String
toString()
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, wait
Methods inherited from interface it.auties.whatsapp.model.message.model.ServerMessage
category
-
Field Details
-
destinationJid
The field for thedestinationJid
record component. -
message
The field for themessage
record component. -
phash
The field for thephash
record component.
-
-
Constructor Details
-
DeviceSentMessage
Creates an instance of aDeviceSentMessage
record class.- Parameters:
destinationJid
- the value for thedestinationJid
record componentmessage
- the value for themessage
record componentphash
- the value for thephash
record component
-
-
Method Details
-
type
Description copied from interface:Message
Return 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 thedestinationJid
record component.- Returns:
- the value of the
destinationJid
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
phash
Returns the value of thephash
record component.- Returns:
- the value of the
phash
record component
-