java.lang.Object
java.lang.Record
it.auties.whatsapp.model.media.MediaFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thedirectPath
record component.private final byte[]
The field for theencryptedFile
record component.private final byte[]
The field for thefileEncSha256
record component.private final long
The field for thefileLength
record component.private final byte[]
The field for thefileSha256
record component.private final String
The field for thehandle
record component.private final byte[]
The field for themediaKey
record component.private final Long
The field for thetimestamp
record component.private final String
The field for theurl
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectPath
record component.byte[]
Returns the value of theencryptedFile
record component.final boolean
Indicates whether some other object is "equal to" this one.byte[]
Returns the value of thefileEncSha256
record component.long
Returns the value of thefileLength
record component.byte[]
Returns the value of thefileSha256
record component.handle()
Returns the value of thehandle
record component.final int
hashCode()
Returns a hash code value for this object.byte[]
mediaKey()
Returns the value of themediaKey
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Field Details
-
encryptedFile
private final byte[] encryptedFileThe field for theencryptedFile
record component. -
fileSha256
private final byte[] fileSha256The field for thefileSha256
record component. -
fileEncSha256
private final byte[] fileEncSha256The field for thefileEncSha256
record component. -
mediaKey
private final byte[] mediaKeyThe field for themediaKey
record component. -
fileLength
private final long fileLengthThe field for thefileLength
record component. -
directPath
The field for thedirectPath
record component. -
url
The field for theurl
record component. -
handle
The field for thehandle
record component. -
timestamp
The field for thetimestamp
record 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 aMediaFile
record class.- Parameters:
encryptedFile
- the value for theencryptedFile
record componentfileSha256
- the value for thefileSha256
record componentfileEncSha256
- the value for thefileEncSha256
record componentmediaKey
- the value for themediaKey
record componentfileLength
- the value for thefileLength
record componentdirectPath
- the value for thedirectPath
record componenturl
- the value for theurl
record componenthandle
- the value for thehandle
record componenttimestamp
- the value for thetimestamp
record 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 theencryptedFile
record component.- Returns:
- the value of the
encryptedFile
record component
-
fileSha256
public byte[] fileSha256()Returns the value of thefileSha256
record component.- Returns:
- the value of the
fileSha256
record component
-
fileEncSha256
public byte[] fileEncSha256()Returns the value of thefileEncSha256
record component.- Returns:
- the value of the
fileEncSha256
record component
-
mediaKey
public byte[] mediaKey()Returns the value of themediaKey
record component.- Returns:
- the value of the
mediaKey
record component
-
fileLength
public long fileLength()Returns the value of thefileLength
record component.- Returns:
- the value of the
fileLength
record component
-
directPath
Returns the value of thedirectPath
record component.- Returns:
- the value of the
directPath
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
handle
Returns the value of thehandle
record component.- Returns:
- the value of the
handle
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-