mirror of
https://github.com/573dev/gfdm-server.git
synced 2026-10-03 06:46:38 -05:00
28 lines
567 B
Python
28 lines
567 B
Python
from lxml.builder import E
|
|
|
|
|
|
class Message(object):
|
|
"""
|
|
Handle the Message request.
|
|
|
|
It is unknown as to what this does. Possibly it's for operator messages
|
|
|
|
Example:
|
|
<call model="K32:J:B:A:2011033000" srcid="00010203040506070809">
|
|
<message method="get"/>
|
|
</call>
|
|
"""
|
|
|
|
# Methods
|
|
GET = "get"
|
|
|
|
@classmethod
|
|
def get(cls):
|
|
"""
|
|
Example:
|
|
<response>
|
|
<message expire="600"/>
|
|
</response>
|
|
"""
|
|
return E.response(E.message({"expire": "600"}))
|