Add initial ballot voter code requirements
This commit is contained in:
21
Web/js/ballotvoter.js
Normal file
21
Web/js/ballotvoter.js
Normal 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.
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user