Record Class GlobalSettings

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.setting.GlobalSettings
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject

public record GlobalSettings(Optional<ChatWallpaper> lightThemeWallpaper, MediaVisibility mediaVisibility, Optional<ChatWallpaper> darkThemeWallpaper, Optional<AutoDownloadSettings> autoDownloadWiFi, Optional<AutoDownloadSettings> autoDownloadCellular, Optional<AutoDownloadSettings> autoDownloadRoaming, boolean showIndividualNotificationsPreview, boolean showGroupNotificationsPreview, int disappearingModeDuration, long disappearingModeTimestampSeconds, AvatarUserSettings avatarUserSettings) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Details

    • lightThemeWallpaper

      private final Optional<ChatWallpaper> lightThemeWallpaper
      The field for the lightThemeWallpaper record component.
    • mediaVisibility

      private final MediaVisibility mediaVisibility
      The field for the mediaVisibility record component.
    • darkThemeWallpaper

      private final Optional<ChatWallpaper> darkThemeWallpaper
      The field for the darkThemeWallpaper record component.
    • autoDownloadWiFi

      private final Optional<AutoDownloadSettings> autoDownloadWiFi
      The field for the autoDownloadWiFi record component.
    • autoDownloadCellular

      private final Optional<AutoDownloadSettings> autoDownloadCellular
      The field for the autoDownloadCellular record component.
    • autoDownloadRoaming

      private final Optional<AutoDownloadSettings> autoDownloadRoaming
      The field for the autoDownloadRoaming record component.
    • showIndividualNotificationsPreview

      private final boolean showIndividualNotificationsPreview
      The field for the showIndividualNotificationsPreview record component.
    • showGroupNotificationsPreview

      private final boolean showGroupNotificationsPreview
      The field for the showGroupNotificationsPreview record component.
    • disappearingModeDuration

      private final int disappearingModeDuration
      The field for the disappearingModeDuration record component.
    • disappearingModeTimestampSeconds

      private final long disappearingModeTimestampSeconds
      The field for the disappearingModeTimestampSeconds record component.
    • avatarUserSettings

      private final AvatarUserSettings avatarUserSettings
      The field for the avatarUserSettings record component.
  • Constructor Details

    • GlobalSettings

      public GlobalSettings(Optional<ChatWallpaper> lightThemeWallpaper, MediaVisibility mediaVisibility, Optional<ChatWallpaper> darkThemeWallpaper, Optional<AutoDownloadSettings> autoDownloadWiFi, Optional<AutoDownloadSettings> autoDownloadCellular, Optional<AutoDownloadSettings> autoDownloadRoaming, boolean showIndividualNotificationsPreview, boolean showGroupNotificationsPreview, int disappearingModeDuration, long disappearingModeTimestampSeconds, AvatarUserSettings avatarUserSettings)
      Creates an instance of a GlobalSettings record class.
      Parameters:
      lightThemeWallpaper - the value for the lightThemeWallpaper record component
      mediaVisibility - the value for the mediaVisibility record component
      darkThemeWallpaper - the value for the darkThemeWallpaper record component
      autoDownloadWiFi - the value for the autoDownloadWiFi record component
      autoDownloadCellular - the value for the autoDownloadCellular record component
      autoDownloadRoaming - the value for the autoDownloadRoaming record component
      showIndividualNotificationsPreview - the value for the showIndividualNotificationsPreview record component
      showGroupNotificationsPreview - the value for the showGroupNotificationsPreview record component
      disappearingModeDuration - the value for the disappearingModeDuration record component
      disappearingModeTimestampSeconds - the value for the disappearingModeTimestampSeconds record component
      avatarUserSettings - the value for the avatarUserSettings record component
  • Method Details

    • disappearingModeTimestamp

      public Optional<ZonedDateTime> disappearingModeTimestamp()
      Returns when the disappearing mode was toggled
      Returns:
      an optional
    • 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.
    • lightThemeWallpaper

      public Optional<ChatWallpaper> lightThemeWallpaper()
      Returns the value of the lightThemeWallpaper record component.
      Returns:
      the value of the lightThemeWallpaper record component
    • mediaVisibility

      public MediaVisibility mediaVisibility()
      Returns the value of the mediaVisibility record component.
      Returns:
      the value of the mediaVisibility record component
    • darkThemeWallpaper

      public Optional<ChatWallpaper> darkThemeWallpaper()
      Returns the value of the darkThemeWallpaper record component.
      Returns:
      the value of the darkThemeWallpaper record component
    • autoDownloadWiFi

      public Optional<AutoDownloadSettings> autoDownloadWiFi()
      Returns the value of the autoDownloadWiFi record component.
      Returns:
      the value of the autoDownloadWiFi record component
    • autoDownloadCellular

      public Optional<AutoDownloadSettings> autoDownloadCellular()
      Returns the value of the autoDownloadCellular record component.
      Returns:
      the value of the autoDownloadCellular record component
    • autoDownloadRoaming

      public Optional<AutoDownloadSettings> autoDownloadRoaming()
      Returns the value of the autoDownloadRoaming record component.
      Returns:
      the value of the autoDownloadRoaming record component
    • showIndividualNotificationsPreview

      public boolean showIndividualNotificationsPreview()
      Returns the value of the showIndividualNotificationsPreview record component.
      Returns:
      the value of the showIndividualNotificationsPreview record component
    • showGroupNotificationsPreview

      public boolean showGroupNotificationsPreview()
      Returns the value of the showGroupNotificationsPreview record component.
      Returns:
      the value of the showGroupNotificationsPreview record component
    • disappearingModeDuration

      public int disappearingModeDuration()
      Returns the value of the disappearingModeDuration record component.
      Returns:
      the value of the disappearingModeDuration record component
    • disappearingModeTimestampSeconds

      public long disappearingModeTimestampSeconds()
      Returns the value of the disappearingModeTimestampSeconds record component.
      Returns:
      the value of the disappearingModeTimestampSeconds record component
    • avatarUserSettings

      public AvatarUserSettings avatarUserSettings()
      Returns the value of the avatarUserSettings record component.
      Returns:
      the value of the avatarUserSettings record component