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