diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-07 16:01:54 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-07 16:01:54 -0800 |
commit | 8b974f8f74f6eefc5955a0f9e385f6460504fc42 (patch) | |
tree | f73a10571b7b0487aaa15a574fe8ea29a6dce225 /Zotlabs/Zot/ZotHandler.php | |
parent | 53627c89a716fcd9bac535169710e65b229e96a5 (diff) | |
download | volse-hubzilla-8b974f8f74f6eefc5955a0f9e385f6460504fc42.tar.gz volse-hubzilla-8b974f8f74f6eefc5955a0f9e385f6460504fc42.tar.bz2 volse-hubzilla-8b974f8f74f6eefc5955a0f9e385f6460504fc42.zip |
abstract the message handlers
Diffstat (limited to 'Zotlabs/Zot/ZotHandler.php')
-rw-r--r-- | Zotlabs/Zot/ZotHandler.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Zotlabs/Zot/ZotHandler.php b/Zotlabs/Zot/ZotHandler.php new file mode 100644 index 000000000..20332074e --- /dev/null +++ b/Zotlabs/Zot/ZotHandler.php @@ -0,0 +1,38 @@ +<?php + +namespace Zotlabs\Zot; + +require_once('Zotlabs/Zot/IHandler.php'); + + +class ZotHandler implements IHandler { + + function Ping() { + zot_reply_ping(); + } + + function Pickup($data) { + zot_reply_pickup($data); + } + + function Notify($data) { + zot_reply_notify($data); + } + + function Request($data) { + zot_reply_message_request($data)); + } + + function AuthCheck($data,$encrypted) { + zot_reply_auth_check($data,$encrypted); + } + + function Purge($sender,$recipients) { + zot_reply_purge($sender,$recipients); + } + + function Refresh($sender,$recipients) { + zot_reply_refresh($sender,$recipients); + } + +} |