java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.HistorySync
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record HistorySync(HistorySync.Type syncType, List<Chat> conversations, List<ChatMessageInfo> statusV3Messages, int chunkOrder, Integer progress, List<PushName> pushNames, GlobalSettings globalSettings, byte[] threadIdUserSecret, int threadDsTimeframeOffset, List<StickerMetadata> recentStickers, List<GroupPastParticipants> pastParticipants)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thechunkOrderrecord component.The field for theconversationsrecord component.private final GlobalSettingsThe field for theglobalSettingsrecord component.private final List<GroupPastParticipants> The field for thepastParticipantsrecord component.private final IntegerThe field for theprogressrecord component.The field for thepushNamesrecord component.private final List<StickerMetadata> The field for therecentStickersrecord component.private final List<ChatMessageInfo> The field for thestatusV3Messagesrecord component.private final HistorySync.TypeThe field for thesyncTyperecord component.private final intThe field for thethreadDsTimeframeOffsetrecord component.private final byte[]The field for thethreadIdUserSecretrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHistorySync(HistorySync.Type syncType, List<Chat> conversations, List<ChatMessageInfo> statusV3Messages, int chunkOrder, Integer progress, List<PushName> pushNames, GlobalSettings globalSettings, byte[] threadIdUserSecret, int threadDsTimeframeOffset, List<StickerMetadata> recentStickers, List<GroupPastParticipants> pastParticipants) Creates an instance of aHistorySyncrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechunkOrderrecord component.Returns the value of theconversationsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalSettingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepastParticipantsrecord component.progress()Returns the value of theprogressrecord component.Returns the value of thepushNamesrecord component.Returns the value of therecentStickersrecord component.Returns the value of thestatusV3Messagesrecord component.syncType()Returns the value of thesyncTyperecord component.intReturns the value of thethreadDsTimeframeOffsetrecord component.byte[]Returns the value of thethreadIdUserSecretrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
syncType
The field for thesyncTyperecord component. -
conversations
The field for theconversationsrecord component. -
statusV3Messages
The field for thestatusV3Messagesrecord component. -
chunkOrder
private final int chunkOrderThe field for thechunkOrderrecord component. -
progress
The field for theprogressrecord component. -
pushNames
The field for thepushNamesrecord component. -
globalSettings
The field for theglobalSettingsrecord component. -
threadIdUserSecret
private final byte[] threadIdUserSecretThe field for thethreadIdUserSecretrecord component. -
threadDsTimeframeOffset
private final int threadDsTimeframeOffsetThe field for thethreadDsTimeframeOffsetrecord component. -
recentStickers
The field for therecentStickersrecord component. -
pastParticipants
The field for thepastParticipantsrecord component.
-
-
Constructor Details
-
HistorySync
public HistorySync(HistorySync.Type syncType, List<Chat> conversations, List<ChatMessageInfo> statusV3Messages, int chunkOrder, Integer progress, List<PushName> pushNames, GlobalSettings globalSettings, byte[] threadIdUserSecret, int threadDsTimeframeOffset, List<StickerMetadata> recentStickers, List<GroupPastParticipants> pastParticipants) Creates an instance of aHistorySyncrecord class.- Parameters:
syncType- the value for thesyncTyperecord componentconversations- the value for theconversationsrecord componentstatusV3Messages- the value for thestatusV3Messagesrecord componentchunkOrder- the value for thechunkOrderrecord componentprogress- the value for theprogressrecord componentpushNames- the value for thepushNamesrecord componentglobalSettings- the value for theglobalSettingsrecord componentthreadIdUserSecret- the value for thethreadIdUserSecretrecord componentthreadDsTimeframeOffset- the value for thethreadDsTimeframeOffsetrecord componentrecentStickers- the value for therecentStickersrecord componentpastParticipants- the value for thepastParticipantsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
syncType
Returns the value of thesyncTyperecord component.- Returns:
- the value of the
syncTyperecord component
-
conversations
Returns the value of theconversationsrecord component.- Returns:
- the value of the
conversationsrecord component
-
statusV3Messages
Returns the value of thestatusV3Messagesrecord component.- Returns:
- the value of the
statusV3Messagesrecord component
-
chunkOrder
public int chunkOrder()Returns the value of thechunkOrderrecord component.- Returns:
- the value of the
chunkOrderrecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
pushNames
Returns the value of thepushNamesrecord component.- Returns:
- the value of the
pushNamesrecord component
-
globalSettings
Returns the value of theglobalSettingsrecord component.- Returns:
- the value of the
globalSettingsrecord component
-
threadIdUserSecret
public byte[] threadIdUserSecret()Returns the value of thethreadIdUserSecretrecord component.- Returns:
- the value of the
threadIdUserSecretrecord component
-
threadDsTimeframeOffset
public int threadDsTimeframeOffset()Returns the value of thethreadDsTimeframeOffsetrecord component.- Returns:
- the value of the
threadDsTimeframeOffsetrecord component
-
recentStickers
Returns the value of therecentStickersrecord component.- Returns:
- the value of the
recentStickersrecord component
-
pastParticipants
Returns the value of thepastParticipantsrecord component.- Returns:
- the value of the
pastParticipantsrecord component
-