java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.StickerMetadata
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedirectPathrecord 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 intThe field for theheightrecord component.private final longThe field for thelastStickerSentTsrecord component.private final byte[]The field for themediaKeyrecord component.private final StringThe field for themimetyperecord component.private final StringThe field for theurlrecord component.private final floatThe field for theweightrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStickerMetadata(String url, byte[] fileSha256, byte[] fileEncSha256, byte[] mediaKey, String mimetype, int height, int width, String directPath, long fileLength, float weight, long lastStickerSentTs) Creates an instance of aStickerMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectPathrecord 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.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.longReturns the value of thelastStickerSentTsrecord component.byte[]mediaKey()Returns the value of themediaKeyrecord component.mimetype()Returns the value of themimetyperecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.floatweight()Returns the value of theweightrecord component.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
url
The field for theurlrecord 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. -
mimetype
The field for themimetyperecord component. -
height
private final int heightThe field for theheightrecord component. -
width
private final int widthThe field for thewidthrecord component. -
directPath
The field for thedirectPathrecord component. -
fileLength
private final long fileLengthThe field for thefileLengthrecord component. -
weight
private final float weightThe field for theweightrecord component. -
lastStickerSentTs
private final long lastStickerSentTsThe field for thelastStickerSentTsrecord component.
-
-
Constructor Details
-
StickerMetadata
public StickerMetadata(String url, byte[] fileSha256, byte[] fileEncSha256, byte[] mediaKey, String mimetype, int height, int width, String directPath, long fileLength, float weight, long lastStickerSentTs) Creates an instance of aStickerMetadatarecord class.- Parameters:
url- the value for theurlrecord componentfileSha256- the value for thefileSha256record componentfileEncSha256- the value for thefileEncSha256record componentmediaKey- the value for themediaKeyrecord componentmimetype- the value for themimetyperecord componentheight- the value for theheightrecord componentwidth- the value for thewidthrecord componentdirectPath- the value for thedirectPathrecord componentfileLength- the value for thefileLengthrecord componentweight- the value for theweightrecord componentlastStickerSentTs- the value for thelastStickerSentTsrecord 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 '=='. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord 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
-
mimetype
Returns the value of themimetyperecord component.- Returns:
- the value of the
mimetyperecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
directPath
Returns the value of thedirectPathrecord component.- Returns:
- the value of the
directPathrecord component
-
fileLength
public long fileLength()Returns the value of thefileLengthrecord component.- Returns:
- the value of the
fileLengthrecord component
-
weight
public float weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
lastStickerSentTs
public long lastStickerSentTs()Returns the value of thelastStickerSentTsrecord component.- Returns:
- the value of the
lastStickerSentTsrecord component
-