Module it.auties.whatsappweb4j
Class StickerMessage
java.lang.Object
it.auties.whatsapp.model.message.model.ContextualMessage
it.auties.whatsapp.model.message.model.MediaMessage
it.auties.whatsapp.model.message.standard.StickerMessage
- All Implemented Interfaces:
it.auties.protobuf.api.model.ProtobufMessage
,AttachmentProvider
,Message
A model class that represents a message holding a sticker inside
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
StickerMessage.StickerMessageBuilder<C extends StickerMessage,
B extends StickerMessage.StickerMessageBuilder<C, B>> Nested classes/interfaces inherited from class it.auties.whatsapp.model.message.model.MediaMessage
MediaMessage.MediaMessageBuilder<C extends MediaMessage,
B extends MediaMessage.MediaMessageBuilder<C, B>> Nested classes/interfaces inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
ContextualMessage.ContextualMessageBuilder<C extends ContextualMessage,
B extends ContextualMessage.ContextualMessageBuilder<C, B>> -
Constructor Summary
ModifierConstructorDescriptionprotected
StickerMessage
(String url, byte[] fileSha256, byte[] fileEncSha256, byte[] key, String mimetype, Integer height, Integer width, String directPath, long fileLength, long mediaKeyTimestamp, Integer firstFrameLength, byte[] firstFrameSidecar, boolean animated, byte[] thumbnail) -
Method Summary
Modifier and TypeMethodDescriptionboolean
animated()
Determines whether this sticker message is animatedanimated
(boolean animated) Determines whether this sticker message is animatedprotected boolean
The direct path to the encoded sticker that this object wrapsdirectPath
(String directPath) The direct path to the encoded sticker that this object wrapsboolean
byte[]
The sha256 of the encoded sticker that this object wrapsfileEncSha256
(byte[] fileEncSha256) The sha256 of the encoded sticker that this object wrapslong
The unsigned size of the decoded sticker that this object wrapsfileLength
(long fileLength) The unsigned size of the decoded sticker that this object wrapsbyte[]
The sha256 of the decoded sticker that this object wrapsfileSha256
(byte[] fileSha256) The sha256 of the decoded sticker that this object wrapsThe length of the first framefirstFrameLength
(Integer firstFrameLength) The length of the first framebyte[]
The sidecar for the first framefirstFrameSidecar
(byte[] firstFrameSidecar) The sidecar for the first frameint
hashCode()
height()
The unsigned height of the decoded sticker that this object wrapsThe unsigned height of the decoded sticker that this object wrapsbyte[]
key()
The media key of the sticker that this object wrapskey
(byte[] key) The media key of the sticker that this object wrapslong
The timestamp, that is the seconds elapsed sinceInstant.EPOCH
, forkey()
mediaKeyTimestamp
(long mediaKeyTimestamp) The timestamp, that is the seconds elapsed sinceInstant.EPOCH
, forkey()
mimetype()
The mime type of the sticker that this object wraps.The mime type of the sticker that this object wraps.static StickerMessage.StickerMessageBuilder<?,
?> byte[]
The thumbnail for this sticker message encoded as png in an array of bytesthumbnail
(byte[] thumbnail) The thumbnail for this sticker message encoded as png in an array of bytestoString()
type()
Returns the media type of the sticker that this object wrapsurl()
The upload url of the encoded sticker that this object wrapsThe upload url of the encoded sticker that this object wrapswidth()
The unsigned width of the decoded sticker that this object wrapsThe unsigned width of the decoded sticker that this object wrapsMethods inherited from class it.auties.whatsapp.model.message.model.MediaMessage
decodedMedia, keyName, name, refreshMedia, store, storeId, storeId
Methods inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
contextInfo, contextInfo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.auties.protobuf.api.model.ProtobufMessage
value
-
Constructor Details
-
StickerMessage
-
StickerMessage
-
StickerMessage
public StickerMessage()
-
-
Method Details
-
type
Returns the media type of the sticker that this object wraps- Specified by:
type
in classMediaMessage
- Returns:
MediaMessageType.STICKER
-
newRawStickerMessage
-
newStickerMessage
-
url
The upload url of the encoded sticker that this object wraps -
fileSha256
public byte[] fileSha256()The sha256 of the decoded sticker that this object wraps -
fileEncSha256
public byte[] fileEncSha256()The sha256 of the encoded sticker that this object wraps -
key
public byte[] key()The media key of the sticker that this object wraps -
mimetype
The mime type of the sticker that this object wraps. Most of the endTimeStamp this isMediaMessageType.defaultMimeType()
-
height
The unsigned height of the decoded sticker that this object wraps -
width
The unsigned width of the decoded sticker that this object wraps -
directPath
The direct path to the encoded sticker that this object wraps -
fileLength
public long fileLength()The unsigned size of the decoded sticker that this object wraps -
mediaKeyTimestamp
public long mediaKeyTimestamp()The timestamp, that is the seconds elapsed sinceInstant.EPOCH
, forkey()
- Specified by:
mediaKeyTimestamp
in classMediaMessage
- Returns:
- an unsigned long
-
firstFrameLength
The length of the first frame -
firstFrameSidecar
public byte[] firstFrameSidecar()The sidecar for the first frame -
animated
public boolean animated()Determines whether this sticker message is animated -
thumbnail
public byte[] thumbnail()The thumbnail for this sticker message encoded as png in an array of bytes -
url
The upload url of the encoded sticker that this object wraps- Returns:
this
.
-
fileSha256
The sha256 of the decoded sticker that this object wraps- Returns:
this
.
-
fileEncSha256
The sha256 of the encoded sticker that this object wraps- Returns:
this
.
-
key
The media key of the sticker that this object wraps- Returns:
this
.
-
mimetype
The mime type of the sticker that this object wraps. Most of the endTimeStamp this isMediaMessageType.defaultMimeType()
- Returns:
this
.
-
height
The unsigned height of the decoded sticker that this object wraps- Returns:
this
.
-
width
The unsigned width of the decoded sticker that this object wraps- Returns:
this
.
-
directPath
The direct path to the encoded sticker that this object wraps- Returns:
this
.
-
fileLength
The unsigned size of the decoded sticker that this object wraps- Returns:
this
.
-
mediaKeyTimestamp
The timestamp, that is the seconds elapsed sinceInstant.EPOCH
, forkey()
- Returns:
this
.
-
firstFrameLength
The length of the first frame- Returns:
this
.
-
firstFrameSidecar
The sidecar for the first frame- Returns:
this
.
-
animated
Determines whether this sticker message is animated- Returns:
this
.
-
thumbnail
The thumbnail for this sticker message encoded as png in an array of bytes- Returns:
this
.
-
toString
- Overrides:
toString
in classContextualMessage
-
equals
- Overrides:
equals
in classMediaMessage
-
canEqual
- Overrides:
canEqual
in classMediaMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMediaMessage
-