Package ch.threema.apitool.types.voting
Class BallotChoice
java.lang.Object
ch.threema.apitool.types.voting.BallotChoice
@Generated(value="msgapi-sdk-codegen",
date="2022-09-12T15:53:56.786299819+00:00")
public class BallotChoice
extends Object
A poll choice item that is part of a poll message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BallotChoicefromString(byte[] data, int realDataLength) byte[]getData()The poll choice identifiergetName()The poll choice nameintgetOrder()Deprecated.The poll vote result index arrayThe total poll votesinthashCode()toString()
-
Constructor Details
-
BallotChoice
-
-
Method Details
-
getIdentifier
The poll choice identifier- Returns:
- identifier
-
getName
The poll choice name- Returns:
- name
-
getOrder
Deprecated.The poll choice order number- Returns:
- order
-
getResult
The poll vote result index array- Returns:
- result
-
getTotalVotes
The total poll votes- Returns:
- totalVotes
-
getData
- Throws:
BadMessageException
-
fromString
- Throws:
BadMessageException
-
equals
-
hashCode
public int hashCode() -
toString
-