Add initial ballot voter code requirements

This commit is contained in:
Michael Pivato
2019-01-27 23:44:35 +10:30
parent 48cf938b8a
commit 6289451f26

21
Web/js/ballotvoter.js Normal file
View File

@@ -0,0 +1,21 @@
class MqttMessenger{
};
class BallotVoter{
constructor(onVote, messenger) {
this.cfg = ""; //load the configuration file.
this.messenger = messenger;
};
onConnect(){
console.log("Connected");
// Send a connected message to the swarm.
};
onMessage(message){
print("Message Received");
// Unpack the message.
};
};