Package ch.threema.apitool.messages
Class BallotVoteMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.BallotVoteMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.485807841+00:00")
public class BallotVoteMessage
extends ThreemaMessage
A poll vote message that can be sent/received with end-to-end encryption via Threema.
-
Field Summary
FieldsFields inherited from class ch.threema.apitool.messages.ThreemaMessage
BLOB_ID_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BallotVoteMessagefromString(byte[] data, int realDataLength) byte[]The poll ballot identifierbyte[]The group poll creatorbyte[]getData()intgetVotes()The votes tupleinthashCode()toString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
BallotVoteMessage
-
-
Method Details
-
getCreator
public byte[] getCreator()The group poll creator- Returns:
- creator
-
getBallotId
public byte[] getBallotId()The poll ballot identifier- Returns:
- ballotId
-
getVotes
The votes tuple- Returns:
- votes
-
getTypeCode
public int getTypeCode()- Specified by:
getTypeCodein classThreemaMessage- Returns:
- the message's type code
-
getData
- Specified by:
getDatain classThreemaMessage- Returns:
- The message's raw content
- Throws:
BadMessageException
-
fromString
public static BallotVoteMessage fromString(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaMessage
-
hashCode
public int hashCode() -
toString
-