mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-10 19:22:17 +03:00
17 lines
534 B
Python
17 lines
534 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
|
from base.model.MessageType import MessageType
|
|
|
|
|
|
class MessageFactory(object):
|
|
def createMessage(self, type, message):
|
|
|
|
if type == MessageType.TASK_RECEIVED:
|
|
return "Message receivden response"
|
|
elif type == MessageType.TASK_PROCESSING:
|
|
return "Message processing response"
|
|
else:
|
|
return None
|
|
|
|
createMessage = staticmethod(createMessage)
|