17 lines
277 B
Python
17 lines
277 B
Python
|
# Gtk imports
|
||
|
|
||
|
# Python imports
|
||
|
import base64
|
||
|
|
||
|
# Application imports
|
||
|
|
||
|
|
||
|
class MessageHandler:
|
||
|
def __init__(self):
|
||
|
pass
|
||
|
|
||
|
|
||
|
def createMessageJSON(self, type, text):
|
||
|
return '{"message": { "type": "' + type + \
|
||
|
'", "text": "' + text + '" } }'
|