class Message(object): def __init__(self, message): self.original = True self.prefix = None self.handle = message.get("handle") self.peer = message.get("peer") self.body = message.get("body") self.timestamp = message.get("timestamp") self.command = message.get("command") self.speaker = message.get("speaker") self.bounces = message.get("bounces") self.self_chain = message.get("self_chain") self.net_chain = message.get("net_chain") self.self_chain_valid = message.get("self_chain_valid") self.error_code = message.get("error_code")