java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.HistorySyncMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record HistorySyncMessage(ChatMessageInfo messageInfo, long messageOrderId)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatMessageInfoThe field for themessageInforecord component.private final longThe field for themessageOrderIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHistorySyncMessage(ChatMessageInfo messageInfo, long messageOrderId) Creates an instance of aHistorySyncMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of themessageInforecord component.longReturns the value of themessageOrderIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
messageInfo
The field for themessageInforecord component. -
messageOrderId
private final long messageOrderIdThe field for themessageOrderIdrecord component.
-
-
Constructor Details
-
HistorySyncMessage
Creates an instance of aHistorySyncMessagerecord class.- Parameters:
messageInfo- the value for themessageInforecord componentmessageOrderId- the value for themessageOrderIdrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
messageInfo
Returns the value of themessageInforecord component.- Returns:
- the value of the
messageInforecord component
-
messageOrderId
public long messageOrderId()Returns the value of themessageOrderIdrecord component.- Returns:
- the value of the
messageOrderIdrecord component
-