Module it.auties.cobalt
Record Class DeviceSyncMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.server.DeviceSyncMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message,ServerMessage
A model class that represents a message that refers to a message sent by the device paired with
the active WhatsappWeb session to dataSync.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for theserializedXmlBytesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceSyncMessage(byte[] serializedXmlBytes) Creates an instance of aDeviceSyncMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of theserializedXmlBytesrecord 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
-
serializedXmlBytes
private final byte[] serializedXmlBytesThe field for theserializedXmlBytesrecord component.
-
-
Constructor Details
-
DeviceSyncMessage
public DeviceSyncMessage(byte[] serializedXmlBytes) Creates an instance of aDeviceSyncMessagerecord class.- Parameters:
serializedXmlBytes- the value for theserializedXmlBytesrecord 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). -
serializedXmlBytes
public byte[] serializedXmlBytes()Returns the value of theserializedXmlBytesrecord component.- Returns:
- the value of the
serializedXmlBytesrecord component
-