示例#1
0
        public CiphertextAcceptedBallot BallotSpoil(CiphertextBallot ballot, CiphertextElectionContext context, ElectionDescription description)
        {
            var ctxt = new AcceptBallotRequest()
            {
                ballot      = ballot,
                context     = context,
                description = description
            };

            return(PostRequest <CiphertextAcceptedBallot, AcceptBallotRequest>("/api/v1/ballot/spoil", ctxt));
        }
示例#2
0
        public async Task <CiphertextAcceptedBallot> BallotSpoilAsync(CiphertextBallot ballot, CiphertextElectionContext context, ElectionDescription description)
        {
            var ctxt = new AcceptBallotRequest()
            {
                ballot      = ballot,
                context     = context,
                description = description
            };

            return(await PostRequestAsync <CiphertextAcceptedBallot, AcceptBallotRequest>("/api/v1/ballot/spoil", ctxt));
        }