Package ch.threema.apitool.types.voting
Class VoteChoice
java.lang.Object
ch.threema.apitool.types.voting.VoteChoice
@Generated(value="msgapi-sdk-codegen",
date="2022-09-12T15:53:56.793026168+00:00")
public class VoteChoice
extends Object
A vote choice item that is part of a vote message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VoteChoicefromString(byte[] data, int realDataLength) intThe ballot identifierbyte[]getData()booleanThe vote choice nameinthashCode()toString()
-
Constructor Details
-
VoteChoice
public VoteChoice(int ballotId, boolean selected)
-
-
Method Details
-
getBallotId
public int getBallotId()The ballot identifier- Returns:
- ballotId
-
getSelected
public boolean getSelected()The vote choice name- Returns:
- selected
-
getData
- Throws:
BadMessageException
-
fromString
- Throws:
BadMessageException
-
equals
-
hashCode
public int hashCode() -
toString
-