Record Class HistorySync

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
  • Field Details

    • syncType

      private final HistorySync.Type syncType
      The field for the syncType record component.
    • conversations

      private final List<Chat> conversations
      The field for the conversations record component.
    • statusV3Messages

      private final List<ChatMessageInfo> statusV3Messages
      The field for the statusV3Messages record component.
    • chunkOrder

      private final int chunkOrder
      The field for the chunkOrder record component.
    • progress

      private final Integer progress
      The field for the progress record component.
    • pushNames

      private final List<PushName> pushNames
      The field for the pushNames record component.
    • globalSettings

      private final GlobalSettings globalSettings
      The field for the globalSettings record component.
    • threadIdUserSecret

      private final byte[] threadIdUserSecret
      The field for the threadIdUserSecret record component.
    • threadDsTimeframeOffset

      private final int threadDsTimeframeOffset
      The field for the threadDsTimeframeOffset record component.
    • recentStickers

      private final List<StickerMetadata> recentStickers
      The field for the recentStickers record component.
    • pastParticipants

      private final List<GroupPastParticipants> pastParticipants
      The field for the pastParticipants record 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 a HistorySync record class.
      Parameters:
      syncType - the value for the syncType record component
      conversations - the value for the conversations record component
      statusV3Messages - the value for the statusV3Messages record component
      chunkOrder - the value for the chunkOrder record component
      progress - the value for the progress record component
      pushNames - the value for the pushNames record component
      globalSettings - the value for the globalSettings record component
      threadIdUserSecret - the value for the threadIdUserSecret record component
      threadDsTimeframeOffset - the value for the threadDsTimeframeOffset record component
      recentStickers - the value for the recentStickers record component
      pastParticipants - the value for the pastParticipants record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • syncType

      public HistorySync.Type syncType()
      Returns the value of the syncType record component.
      Returns:
      the value of the syncType record component
    • conversations

      public List<Chat> conversations()
      Returns the value of the conversations record component.
      Returns:
      the value of the conversations record component
    • statusV3Messages

      public List<ChatMessageInfo> statusV3Messages()
      Returns the value of the statusV3Messages record component.
      Returns:
      the value of the statusV3Messages record component
    • chunkOrder

      public int chunkOrder()
      Returns the value of the chunkOrder record component.
      Returns:
      the value of the chunkOrder record component
    • progress

      public Integer progress()
      Returns the value of the progress record component.
      Returns:
      the value of the progress record component
    • pushNames

      public List<PushName> pushNames()
      Returns the value of the pushNames record component.
      Returns:
      the value of the pushNames record component
    • globalSettings

      public GlobalSettings globalSettings()
      Returns the value of the globalSettings record component.
      Returns:
      the value of the globalSettings record component
    • threadIdUserSecret

      public byte[] threadIdUserSecret()
      Returns the value of the threadIdUserSecret record component.
      Returns:
      the value of the threadIdUserSecret record component
    • threadDsTimeframeOffset

      public int threadDsTimeframeOffset()
      Returns the value of the threadDsTimeframeOffset record component.
      Returns:
      the value of the threadDsTimeframeOffset record component
    • recentStickers

      public List<StickerMetadata> recentStickers()
      Returns the value of the recentStickers record component.
      Returns:
      the value of the recentStickers record component
    • pastParticipants

      public List<GroupPastParticipants> pastParticipants()
      Returns the value of the pastParticipants record component.
      Returns:
      the value of the pastParticipants record component