Package ch.threema.apitool.serializers
Class BallotVoteMessageSerializer
java.lang.Object
ch.threema.apitool.serializers.BallotVoteMessageSerializer
- All Implemented Interfaces:
CustomMessageSerializer
@Generated(value="msgapi-sdk-codegen",
date="2022-09-12T15:53:56.786299819+00:00")
public class BallotVoteMessageSerializer
extends Object
implements CustomMessageSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BallotVoteMessagedeserialize(byte[] data, int realDataLength) static byte[]extractJson(byte[] data, int realDataLength) static byte[]serialize(byte[] creator, byte[] ballotId, List<VoteChoice> votes) static voidvalidate(byte[] data, int realDataLength)
-
Constructor Details
-
BallotVoteMessageSerializer
public BallotVoteMessageSerializer()
-
-
Method Details
-
serialize
public static byte[] serialize(byte[] creator, byte[] ballotId, List<VoteChoice> votes) throws BadMessageException - Throws:
BadMessageException
-
deserialize
public static BallotVoteMessage deserialize(byte[] data, int realDataLength) throws BadMessageException - Throws:
BadMessageException
-
extractJson
public static byte[] extractJson(byte[] data, int realDataLength) -
validate
- Throws:
BadMessageException
-