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 Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<AutoDownloadSettings> The field for theautoDownloadCellularrecord component.private final Optional<AutoDownloadSettings> The field for theautoDownloadRoamingrecord component.private final Optional<AutoDownloadSettings> The field for theautoDownloadWiFirecord component.private final AvatarUserSettingsThe field for theavatarUserSettingsrecord component.private final Optional<ChatWallpaper> The field for thedarkThemeWallpaperrecord component.private final intThe field for thedisappearingModeDurationrecord component.private final longThe field for thedisappearingModeTimestampSecondsrecord component.private final Optional<ChatWallpaper> The field for thelightThemeWallpaperrecord component.private final MediaVisibilityThe field for themediaVisibilityrecord component.private final booleanThe field for theshowGroupNotificationsPreviewrecord component.private final booleanThe field for theshowIndividualNotificationsPreviewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlobalSettings(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 aGlobalSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautoDownloadCellularrecord component.Returns the value of theautoDownloadRoamingrecord component.Returns the value of theautoDownloadWiFirecord component.Returns the value of theavatarUserSettingsrecord component.Returns the value of thedarkThemeWallpaperrecord component.intReturns the value of thedisappearingModeDurationrecord component.Returns when the disappearing mode was toggledlongReturns the value of thedisappearingModeTimestampSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelightThemeWallpaperrecord component.Returns the value of themediaVisibilityrecord component.booleanReturns the value of theshowGroupNotificationsPreviewrecord component.booleanReturns the value of theshowIndividualNotificationsPreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
lightThemeWallpaper
The field for thelightThemeWallpaperrecord component. -
mediaVisibility
The field for themediaVisibilityrecord component. -
darkThemeWallpaper
The field for thedarkThemeWallpaperrecord component. -
autoDownloadWiFi
The field for theautoDownloadWiFirecord component. -
autoDownloadCellular
The field for theautoDownloadCellularrecord component. -
autoDownloadRoaming
The field for theautoDownloadRoamingrecord component. -
showIndividualNotificationsPreview
private final boolean showIndividualNotificationsPreviewThe field for theshowIndividualNotificationsPreviewrecord component. -
showGroupNotificationsPreview
private final boolean showGroupNotificationsPreviewThe field for theshowGroupNotificationsPreviewrecord component. -
disappearingModeDuration
private final int disappearingModeDurationThe field for thedisappearingModeDurationrecord component. -
disappearingModeTimestampSeconds
private final long disappearingModeTimestampSecondsThe field for thedisappearingModeTimestampSecondsrecord component. -
avatarUserSettings
The field for theavatarUserSettingsrecord 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 aGlobalSettingsrecord class.- Parameters:
lightThemeWallpaper- the value for thelightThemeWallpaperrecord componentmediaVisibility- the value for themediaVisibilityrecord componentdarkThemeWallpaper- the value for thedarkThemeWallpaperrecord componentautoDownloadWiFi- the value for theautoDownloadWiFirecord componentautoDownloadCellular- the value for theautoDownloadCellularrecord componentautoDownloadRoaming- the value for theautoDownloadRoamingrecord componentshowIndividualNotificationsPreview- the value for theshowIndividualNotificationsPreviewrecord componentshowGroupNotificationsPreview- the value for theshowGroupNotificationsPreviewrecord componentdisappearingModeDuration- the value for thedisappearingModeDurationrecord componentdisappearingModeTimestampSeconds- the value for thedisappearingModeTimestampSecondsrecord componentavatarUserSettings- the value for theavatarUserSettingsrecord component
-
-
Method Details
-
disappearingModeTimestamp
Returns when the disappearing mode was toggled- Returns:
- an optional
-
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 '=='. -
lightThemeWallpaper
Returns the value of thelightThemeWallpaperrecord component.- Returns:
- the value of the
lightThemeWallpaperrecord component
-
mediaVisibility
Returns the value of themediaVisibilityrecord component.- Returns:
- the value of the
mediaVisibilityrecord component
-
darkThemeWallpaper
Returns the value of thedarkThemeWallpaperrecord component.- Returns:
- the value of the
darkThemeWallpaperrecord component
-
autoDownloadWiFi
Returns the value of theautoDownloadWiFirecord component.- Returns:
- the value of the
autoDownloadWiFirecord component
-
autoDownloadCellular
Returns the value of theautoDownloadCellularrecord component.- Returns:
- the value of the
autoDownloadCellularrecord component
-
autoDownloadRoaming
Returns the value of theautoDownloadRoamingrecord component.- Returns:
- the value of the
autoDownloadRoamingrecord component
-
showIndividualNotificationsPreview
public boolean showIndividualNotificationsPreview()Returns the value of theshowIndividualNotificationsPreviewrecord component.- Returns:
- the value of the
showIndividualNotificationsPreviewrecord component
-
showGroupNotificationsPreview
public boolean showGroupNotificationsPreview()Returns the value of theshowGroupNotificationsPreviewrecord component.- Returns:
- the value of the
showGroupNotificationsPreviewrecord component
-
disappearingModeDuration
public int disappearingModeDuration()Returns the value of thedisappearingModeDurationrecord component.- Returns:
- the value of the
disappearingModeDurationrecord component
-
disappearingModeTimestampSeconds
public long disappearingModeTimestampSeconds()Returns the value of thedisappearingModeTimestampSecondsrecord component.- Returns:
- the value of the
disappearingModeTimestampSecondsrecord component
-
avatarUserSettings
Returns the value of theavatarUserSettingsrecord component.- Returns:
- the value of the
avatarUserSettingsrecord component
-