# Path: src/lifeRaft/messages/base.py
# class BaseMessage(object):
#     AppendEntries = 0
#     RequestVote = 1
#     RequestVoteResponse = 2
#     Response = 3
# 
#     def __init__(self, sender, receiver, term, data):
#         self._timestamp = int(time.time())
# 
#         self._sender = sender
#         self._receiver = receiver
#         self._data = data
#         self._term = term
# 
#     @property
#     def receiver(self):
#         return self._receiver
# 
#     @property
#     def sender(self):
#         return self._sender
# 
#     @property
#     def data(self):
#         return self._data
# 
#     @property
#     def timestamp(self):
#         return self._timestamp
# 
#     @property
#     def term(self):
#         return self._term
# 
#     @property
#     def type(self):
#         return self._type


from .base import BaseMessage


class RequestVoteMessage(BaseMessage):

    _type = BaseMessage.RequestVote

    def __init__(self, sender, receiver, term, data):
        BaseMessage.__init__(self, sender, receiver, term, data)


class RequestVoteResponseMessage(BaseMessage):


# Path: src/lifeRaft/messages/base.py
# class BaseMessage(object):
#     AppendEntries = 0
#     RequestVote = 1
#     RequestVoteResponse = 2
#     Response = 3
# 
#     def __init__(self, sender, receiver, term, data):
#         self._timestamp = int(time.time())
# 
#         self._sender = sender
#         self._receiver = receiver
#         self._data = data
#         self._term = term
# 
#     @property
#     def receiver(self):
#         return self._receiver
# 
#     @property
#     def sender(self):
#         return self._sender
# 
#     @property
#     def data(self):
#         return self._data
# 
#     @property
#     def timestamp(self):
#         return self._timestamp
# 
#     @property
#     def term(self):
#         return self._term
# 
#     @property
#     def type(self):
#         return self._type


# Path: src/lifeRaft/messages/request_vote.py
from .base import BaseMessage



class RequestVoteMessage(BaseMessage):

    _type = BaseMessage.RequestVote

    def __init__(self, sender, receiver, term, data):
        BaseMessage.__init__(self, sender, receiver, term, data)


class RequestVoteResponseMessage(BaseMessage):


    _type = BaseMessage.RequestVoteResponse