9990-keep-ephemer... 1 class Message(object):
9990-keep-ephemer... 2 def __init__(self, message, server=None):
9990-keep-ephemer... 3 self.original = True
9990-keep-ephemer... 4 self.server = server
9990-keep-ephemer... 5 self.handle = message.get("handle")
9990-keep-ephemer... 6 self.peer = message.get("peer")
9990-keep-ephemer... 7 self.body = message.get("body")
9990-keep-ephemer... 8 self.timestamp = message.get("timestamp")
9990-keep-ephemer... 9 self.command = message.get("command")
9990-keep-ephemer... 10 self.speaker = message.get("speaker")
9990-keep-ephemer... 11 self.bounces = message.get("bounces")
9990-keep-ephemer... 12 self.self_chain = message.get("self_chain")
9990-keep-ephemer... 13 self.net_chain = message.get("net_chain")
9990-keep-ephemer... 14 self.self_chain_valid = message.get("self_chain_valid")
9990-keep-ephemer... 15 self.error_code = message.get("error_code")
9990-keep-ephemer... 16 if server:
9990-keep-ephemer... 17 self.state = server.state