Add ability to propogate result of vote and making a vote.

This commit is contained in:
Michael Pivato
2019-03-01 15:44:58 +10:30
parent 0b04588161
commit ede1ec4500
3 changed files with 30 additions and 35 deletions

View File

@@ -88,4 +88,14 @@ class SubmitVote(Message):
self._data["vote"] = value
class GetSwarmParticipants(Message):
_type = "listening"
_type = "listening"
class VoteResult(Message):
_type = "voteresult"
def __init__(self, vote, sender='', data={}):
super().__init__(sender=sender, data=data)
self._data["vote"] = vote
class ClientVoteRequest(Message):
_type = "clientvoterequest"