Module it.auties.whatsapp4j
Class PollUpdateMessage.PollUpdateMessageBuilder
java.lang.Object
it.auties.whatsapp.model.message.standard.PollUpdateMessage.PollUpdateMessageBuilder
- Enclosing class:
- PollUpdateMessage
-
Field Summary
Modifier and TypeFieldDescriptionprivate PollUpdateEncryptedMetadata
private PollUpdateMessageMetadata
private PollCreationMessage
private MessageKey
private boolean
private long
private ContactJid
private boolean
private List<PollOption>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
encryptedMetadata
(PollUpdateEncryptedMetadata encryptedMetadata) The encryption data necessary to decipher this messagemetadata
(PollUpdateMessageMetadata metadata) Metadata about this messagepollCreationMessage
(PollCreationMessage pollCreationMessage) The actual message where the user votedpollCreationMessageKey
(MessageKey pollCreationMessageKey) The MessageKey of the poll where the user votedsenderTimestampMilliseconds
(long senderTimestampMilliseconds) The timestamp of this messagetoString()
voter
(ContactJid voter) The jid of the contact who voted in this pollvotes
(List<PollOption> votes) All the options, including the previous ones, that the user voted
-
Field Details
-
voter
-
pollCreationMessageKey
-
pollCreationMessage
-
votes$set
private boolean votes$set -
votes$value
-
encryptedMetadata
-
metadata
-
senderTimestampMilliseconds$set
private boolean senderTimestampMilliseconds$set -
senderTimestampMilliseconds$value
private long senderTimestampMilliseconds$value
-
-
Constructor Details
-
PollUpdateMessageBuilder
PollUpdateMessageBuilder()
-
-
Method Details
-
voter
The jid of the contact who voted in this poll- Returns:
this
.
-
pollCreationMessageKey
public PollUpdateMessage.PollUpdateMessageBuilder pollCreationMessageKey(MessageKey pollCreationMessageKey) The MessageKey of the poll where the user voted- Returns:
this
.
-
pollCreationMessage
public PollUpdateMessage.PollUpdateMessageBuilder pollCreationMessage(PollCreationMessage pollCreationMessage) The actual message where the user voted- Returns:
this
.
-
votes
All the options, including the previous ones, that the user voted- Returns:
this
.
-
encryptedMetadata
public PollUpdateMessage.PollUpdateMessageBuilder encryptedMetadata(PollUpdateEncryptedMetadata encryptedMetadata) The encryption data necessary to decipher this message- Returns:
this
.
-
metadata
Metadata about this message- Returns:
this
.
-
senderTimestampMilliseconds
public PollUpdateMessage.PollUpdateMessageBuilder senderTimestampMilliseconds(long senderTimestampMilliseconds) The timestamp of this message- Returns:
this
.
-
build
-
toString
-