java.lang.Object
java.lang.Record
it.auties.whatsapp.model.setting.AutoDownloadSettings
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Setting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedownloadAudiorecord component.private final booleanThe field for thedownloadDocumentsrecord component.private final booleanThe field for thedownloadImagesrecord component.private final booleanThe field for thedownloadVideorecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAutoDownloadSettings(boolean downloadImages, boolean downloadAudio, boolean downloadVideo, boolean downloadDocuments) Creates an instance of aAutoDownloadSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedownloadAudiorecord component.booleanReturns the value of thedownloadDocumentsrecord component.booleanReturns the value of thedownloadImagesrecord component.booleanReturns the value of thedownloadVideorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
downloadImages
private final boolean downloadImagesThe field for thedownloadImagesrecord component. -
downloadAudio
private final boolean downloadAudioThe field for thedownloadAudiorecord component. -
downloadVideo
private final boolean downloadVideoThe field for thedownloadVideorecord component. -
downloadDocuments
private final boolean downloadDocumentsThe field for thedownloadDocumentsrecord component.
-
-
Constructor Details
-
AutoDownloadSettings
public AutoDownloadSettings(boolean downloadImages, boolean downloadAudio, boolean downloadVideo, boolean downloadDocuments) Creates an instance of aAutoDownloadSettingsrecord class.- Parameters:
downloadImages- the value for thedownloadImagesrecord componentdownloadAudio- the value for thedownloadAudiorecord componentdownloadVideo- the value for thedownloadVideorecord componentdownloadDocuments- the value for thedownloadDocumentsrecord component
-
-
Method Details
-
indexName
-
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. All components in this record class are compared with '=='. -
downloadImages
public boolean downloadImages()Returns the value of thedownloadImagesrecord component.- Returns:
- the value of the
downloadImagesrecord component
-
downloadAudio
public boolean downloadAudio()Returns the value of thedownloadAudiorecord component.- Returns:
- the value of the
downloadAudiorecord component
-
downloadVideo
public boolean downloadVideo()Returns the value of thedownloadVideorecord component.- Returns:
- the value of the
downloadVideorecord component
-
downloadDocuments
public boolean downloadDocuments()Returns the value of thedownloadDocumentsrecord component.- Returns:
- the value of the
downloadDocumentsrecord component
-