java.lang.Object
it.auties.whatsapp.model.message.standard.TextMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,ContextualMessage,Message
A model class that represents a message holding text inside
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various types of fonts that aTextMessagesupports.static enumstatic enumThe constants of this enumerated type describe the various types of previuew that aTextMessagecan provide. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integerprivate Stringprivate ContextInfoprivate Stringprivate booleanprivate TextMessage.FontTypeprivate TextMessage.InviteLinkGroupTypeprivate TextMessage.InviteLinkGroupTypeprivate Stringprivate byte[]private Stringprivate byte[]private Longprivate TextMessage.PreviewTypeprivate Stringprivate Integerprivate byte[]private Stringprivate byte[]private Integerprivate byte[]private Integerprivate Stringprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionTextMessage(String text, String matchedText, String canonicalUrl, String description, String title, Integer textArgb, Integer backgroundArgb, TextMessage.FontType font, TextMessage.PreviewType previewType, byte[] thumbnail, ContextInfo contextInfo, boolean doNotPlayInline, String thumbnailDirectPath, byte[] thumbnailSha256, byte[] thumbnailEncSha256, byte[] mediaKey, Long mediaKeyTimestampSeconds, Integer thumbnailHeight, Integer thumbnailWidth, TextMessage.InviteLinkGroupType inviteLinkGroupType, String inviteLinkParentGroupSubjectV2, byte[] inviteLinkParentGroupThumbnailV2, TextMessage.InviteLinkGroupType inviteLinkGroupTypeV2, boolean viewOnce) -
Method Summary
Modifier and TypeMethodDescriptioncategory()Return message categorybooleanfont()Optional<byte[]> Optional<byte[]> mediaKey()static TextMessagesetBackgroundArgb(Integer backgroundArgb) setCanonicalUrl(String canonicalUrl) setContextInfo(ContextInfo contextInfo) setDescription(String description) setDoNotPlayInline(boolean doNotPlayInline) setFont(TextMessage.FontType font) setInviteLinkGroupType(TextMessage.InviteLinkGroupType inviteLinkGroupType) setInviteLinkGroupTypeV2(TextMessage.InviteLinkGroupType inviteLinkGroupTypeV2) setInviteLinkParentGroupSubjectV2(String inviteLinkParentGroupSubjectV2) setInviteLinkParentGroupThumbnailV2(byte[] inviteLinkParentGroupThumbnailV2) setMatchedText(String matchedText) setMediaKey(byte[] mediaKey) setMediaKeyTimestampSeconds(Long mediaKeyTimestampSeconds) setPreviewType(TextMessage.PreviewType previewType) setTextArgb(Integer textArgb) setThumbnail(byte[] thumbnail) setThumbnailDirectPath(String thumbnailDirectPath) setThumbnailEncSha256(byte[] thumbnailEncSha256) setThumbnailHeight(Integer thumbnailHeight) setThumbnailSha256(byte[] thumbnailSha256) setThumbnailWidth(Integer thumbnailWidth) setViewOnce(boolean viewOnce) text()textArgb()Optional<byte[]> Optional<byte[]> Optional<byte[]> title()type()Return message typebooleanviewOnce()
-
Field Details
-
text
-
matchedText
-
canonicalUrl
-
description
-
title
-
textArgb
-
backgroundArgb
-
font
-
previewType
-
thumbnail
private byte[] thumbnail -
contextInfo
-
doNotPlayInline
private boolean doNotPlayInline -
thumbnailDirectPath
-
thumbnailSha256
private byte[] thumbnailSha256 -
thumbnailEncSha256
private byte[] thumbnailEncSha256 -
mediaKey
private byte[] mediaKey -
mediaKeyTimestampSeconds
-
thumbnailHeight
-
thumbnailWidth
-
inviteLinkGroupType
-
inviteLinkParentGroupSubjectV2
-
inviteLinkParentGroupThumbnailV2
private byte[] inviteLinkParentGroupThumbnailV2 -
inviteLinkGroupTypeV2
-
viewOnce
private boolean viewOnce
-
-
Constructor Details
-
TextMessage
public TextMessage(String text, String matchedText, String canonicalUrl, String description, String title, Integer textArgb, Integer backgroundArgb, TextMessage.FontType font, TextMessage.PreviewType previewType, byte[] thumbnail, ContextInfo contextInfo, boolean doNotPlayInline, String thumbnailDirectPath, byte[] thumbnailSha256, byte[] thumbnailEncSha256, byte[] mediaKey, Long mediaKeyTimestampSeconds, Integer thumbnailHeight, Integer thumbnailWidth, TextMessage.InviteLinkGroupType inviteLinkGroupType, String inviteLinkParentGroupSubjectV2, byte[] inviteLinkParentGroupThumbnailV2, TextMessage.InviteLinkGroupType inviteLinkGroupTypeV2, boolean viewOnce)
-
-
Method Details
-
of
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
text
-
matchedText
-
canonicalUrl
-
description
-
title
-
textArgb
-
backgroundArgb
-
font
-
previewType
-
thumbnail
-
contextInfo
- Specified by:
contextInfoin interfaceContextualMessage
-
doNotPlayInline
public boolean doNotPlayInline() -
thumbnailDirectPath
-
thumbnailSha256
-
thumbnailEncSha256
-
mediaKey
-
mediaKeyTimestampSeconds
-
thumbnailHeight
-
thumbnailWidth
-
inviteLinkGroupType
-
inviteLinkParentGroupSubjectV2
-
inviteLinkParentGroupThumbnailV2
-
inviteLinkGroupTypeV2
-
viewOnce
public boolean viewOnce() -
setText
-
setMatchedText
-
setCanonicalUrl
-
setDescription
-
setTitle
-
setTextArgb
-
setBackgroundArgb
-
setFont
-
setPreviewType
-
setThumbnail
-
setContextInfo
-
setDoNotPlayInline
-
setThumbnailDirectPath
-
setThumbnailSha256
-
setThumbnailEncSha256
-
setMediaKey
-
setMediaKeyTimestampSeconds
-
setThumbnailHeight
-
setThumbnailWidth
-
setInviteLinkGroupType
-
setInviteLinkParentGroupSubjectV2
-
setInviteLinkParentGroupThumbnailV2
-
setInviteLinkGroupTypeV2
-
setViewOnce
-