This repository has been archived on 2024-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-21/src/messagetypes/message.py

9 lines
225 B
Python
Raw Normal View History

class Message:
def __init__(self, data):
self.subject = data["subject"]
self.body = data["body"]
def process(self):
print "Subject: %s" % (self.subject)
print "Body: %s" % (self.body)