"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const VoteOperation_1 = require("../blockchain/VoteOperation");
const ConfirmVote_1 = require("./ConfirmVote");
var ConfirmVoteBoundWithVote;
(function (ConfirmVoteBoundWithVote) {
    /**
     * This is an TS 1.6+ TypeGuard as described here: https://www.typescriptlang.org/docs/handbook/advanced-types.html
     */
    function isConfirmVoteBoundWithVote(cmd) {
        return ConfirmVote_1.ConfirmVote.isConfirmVote(cmd)
            && cmd.vote !== undefined
            && VoteOperation_1.VoteOperation.isVoteOperation(cmd.vote);
    }
    ConfirmVoteBoundWithVote.isConfirmVoteBoundWithVote = isConfirmVoteBoundWithVote;
})(ConfirmVoteBoundWithVote = exports.ConfirmVoteBoundWithVote || (exports.ConfirmVoteBoundWithVote = {}));
//# sourceMappingURL=ConfirmVoteBoundWithVote.js.map