Package ch.threema.apitool.messages
Class GroupBallotVoteMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.ThreemaGroupMessage
ch.threema.apitool.messages.GroupBallotVoteMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.514702006+00:00")
public class GroupBallotVoteMessage
extends ThreemaGroupMessage
A group 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
ConstructorsConstructorDescriptionGroupBallotVoteMessage(GroupId groupId, byte[] creator, byte[] ballotId, List<VoteChoice> votes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GroupBallotVoteMessagefromString(byte[] data, int realDataLength) byte[]The poll ballot identifierbyte[]The group poll creatorbyte[]getData()The group identifierintgetVotes()The votes arrayinthashCode()toString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
GroupBallotVoteMessage
public GroupBallotVoteMessage(GroupId groupId, byte[] creator, byte[] ballotId, List<VoteChoice> votes)
-
-
Method Details
-
getGroupId
The group identifier- Overrides:
getGroupIdin classThreemaGroupMessage- Returns:
- groupId
-
getCreator
public byte[] getCreator()The group poll creator- Returns:
- creator
-
getBallotId
public byte[] getBallotId()The poll ballot identifier- Returns:
- ballotId
-
getVotes
The votes array- Returns:
- votes
-
getTypeCode
public int getTypeCode()- Specified by:
getTypeCodein classThreemaMessage- Returns:
- the message's type code
-
getData
- Overrides:
getDatain classThreemaGroupMessage- Returns:
- The message's raw content
- Throws:
BadMessageException
-
fromString
public static GroupBallotVoteMessage fromString(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaGroupMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classThreemaGroupMessage
-
toString
- Overrides:
toStringin classThreemaGroupMessage
-