Package ch.threema.apitool.messages
Class GroupBallotCreateMessage
java.lang.Object
ch.threema.apitool.messages.ThreemaMessage
ch.threema.apitool.messages.ThreemaGroupMessage
ch.threema.apitool.messages.GroupBallotCreateMessage
@Generated(value="msgapi-sdk-codegen",
date="2024-03-15T13:44:24.508614517+00:00")
public class GroupBallotCreateMessage
extends ThreemaGroupMessage
A group poll create 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
ConstructorsConstructorDescriptionGroupBallotCreateMessage(GroupId groupId, byte[] ballotId, String description, State state, VotingMode votingMode, ResultsDisclosureType resultsDisclosureType, int order, DisplayMode displayMode, List<BallotChoice> choices, List<String> participants) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GroupBallotCreateMessagefromString(byte[] data, int realDataLength) byte[]The poll ballot identifierThe available vote choicesbyte[]getData()The group poll descriptionThe display modeThe group identifierintgetOrder()Deprecated.The poll participantsThe poll results disclosure typegetState()The group poll stateintThe voting modeinthashCode()toString()
-
Field Details
-
TYPE_CODE
public static final int TYPE_CODE- See Also:
-
-
Constructor Details
-
GroupBallotCreateMessage
public GroupBallotCreateMessage(GroupId groupId, byte[] ballotId, String description, State state, VotingMode votingMode, ResultsDisclosureType resultsDisclosureType, int order, DisplayMode displayMode, List<BallotChoice> choices, List<String> participants)
-
-
Method Details
-
getGroupId
The group identifier- Overrides:
getGroupIdin classThreemaGroupMessage- Returns:
- groupId
-
getBallotId
public byte[] getBallotId()The poll ballot identifier- Returns:
- ballotId
-
getDescription
The group poll description- Returns:
- description
-
getState
The group poll state- Returns:
- state
-
getVotingMode
The voting mode- Returns:
- votingMode
-
getResultsDisclosureType
The poll results disclosure type- Returns:
- resultsDisclosureType
-
getOrder
Deprecated.The poll results order- Returns:
- order
-
getDisplayMode
The display mode- Returns:
- displayMode
-
getChoices
The available vote choices- Returns:
- choices
-
getParticipants
The poll participants- Returns:
- participants
-
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 GroupBallotCreateMessage fromString(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
equals
- Overrides:
equalsin classThreemaGroupMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classThreemaGroupMessage
-
toString
- Overrides:
toStringin classThreemaGroupMessage
-