java.lang.Object
java.lang.Record
it.auties.whatsapp.model.media.MediaFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedirectPathrecord component.private final byte[]The field for theencryptedFilerecord component.private final byte[]The field for thefileEncSha256record component.private final longThe field for thefileLengthrecord component.private final byte[]The field for thefileSha256record component.private final StringThe field for thehandlerecord component.private final byte[]The field for themediaKeyrecord component.private final LongThe field for thetimestamprecord component.private final StringThe field for theurlrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectPathrecord component.byte[]Returns the value of theencryptedFilerecord component.final booleanIndicates whether some other object is "equal to" this one.byte[]Returns the value of thefileEncSha256record component.longReturns the value of thefileLengthrecord component.byte[]Returns the value of thefileSha256record component.handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.byte[]mediaKey()Returns the value of themediaKeyrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
encryptedFile
private final byte[] encryptedFileThe field for theencryptedFilerecord component. -
fileSha256
private final byte[] fileSha256The field for thefileSha256record component. -
fileEncSha256
private final byte[] fileEncSha256The field for thefileEncSha256record component. -
mediaKey
private final byte[] mediaKeyThe field for themediaKeyrecord component. -
fileLength
private final long fileLengthThe field for thefileLengthrecord component. -
directPath
The field for thedirectPathrecord component. -
url
The field for theurlrecord component. -
handle
The field for thehandlerecord component. -
timestamp
The field for thetimestamprecord component.
-
-
Constructor Details
-
MediaFile
public MediaFile(byte[] encryptedFile, byte[] fileSha256, byte[] fileEncSha256, byte[] mediaKey, long fileLength, String directPath, String url, String handle, Long timestamp) Creates an instance of aMediaFilerecord class.- Parameters:
encryptedFile- the value for theencryptedFilerecord componentfileSha256- the value for thefileSha256record componentfileEncSha256- the value for thefileEncSha256record componentmediaKey- the value for themediaKeyrecord componentfileLength- the value for thefileLengthrecord componentdirectPath- the value for thedirectPathrecord componenturl- the value for theurlrecord componenthandle- the value for thehandlerecord componenttimestamp- the value for thetimestamprecord 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 '=='. -
encryptedFile
public byte[] encryptedFile()Returns the value of theencryptedFilerecord component.- Returns:
- the value of the
encryptedFilerecord component
-
fileSha256
public byte[] fileSha256()Returns the value of thefileSha256record component.- Returns:
- the value of the
fileSha256record component
-
fileEncSha256
public byte[] fileEncSha256()Returns the value of thefileEncSha256record component.- Returns:
- the value of the
fileEncSha256record component
-
mediaKey
public byte[] mediaKey()Returns the value of themediaKeyrecord component.- Returns:
- the value of the
mediaKeyrecord component
-
fileLength
public long fileLength()Returns the value of thefileLengthrecord component.- Returns:
- the value of the
fileLengthrecord component
-
directPath
Returns the value of thedirectPathrecord component.- Returns:
- the value of the
directPathrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
handle
Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-