Module it.auties.cobalt
Package it.auties.whatsapp.registration
Record Class WhatsappMetadata.WhatsappApk
java.lang.Object
java.lang.Record
it.auties.whatsapp.registration.WhatsappMetadata.WhatsappApk
- Enclosing class:
WhatsappMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thebusinessrecord component.private final List<byte[]> The field for thecertificatesrecord component.private final byte[]The field for themd5Hashrecord component.private final byte[]The field for thesecretKeyrecord component.private final VersionThe field for theversionrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWhatsappApk(Version version, byte[] md5Hash, byte[] secretKey, List<byte[]> certificates, boolean business) Creates an instance of aWhatsappApkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbusiness()Returns the value of thebusinessrecord component.List<byte[]> Returns the value of thecertificatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]md5Hash()Returns the value of themd5Hashrecord component.byte[]Returns the value of thesecretKeyrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
version
The field for theversionrecord component. -
md5Hash
private final byte[] md5HashThe field for themd5Hashrecord component. -
secretKey
private final byte[] secretKeyThe field for thesecretKeyrecord component. -
certificates
The field for thecertificatesrecord component. -
business
private final boolean businessThe field for thebusinessrecord component.
-
-
Constructor Details
-
WhatsappApk
private WhatsappApk(Version version, byte[] md5Hash, byte[] secretKey, List<byte[]> certificates, boolean business) Creates an instance of aWhatsappApkrecord class.- Parameters:
version- the value for theversionrecord componentmd5Hash- the value for themd5Hashrecord componentsecretKey- the value for thesecretKeyrecord componentcertificates- the value for thecertificatesrecord componentbusiness- the value for thebusinessrecord 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 '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
md5Hash
public byte[] md5Hash()Returns the value of themd5Hashrecord component.- Returns:
- the value of the
md5Hashrecord component
-
secretKey
public byte[] secretKey()Returns the value of thesecretKeyrecord component.- Returns:
- the value of the
secretKeyrecord component
-
certificates
Returns the value of thecertificatesrecord component.- Returns:
- the value of the
certificatesrecord component
-
business
public boolean business()Returns the value of thebusinessrecord component.- Returns:
- the value of the
businessrecord component
-