From 8b974f8f74f6eefc5955a0f9e385f6460504fc42 Mon Sep 17 00:00:00 2001 From: redmatrix <redmatrix@redmatrix.me> Date: Mon, 7 Dec 2015 16:01:54 -0800 Subject: abstract the message handlers --- Zotlabs/Zot/ZotHandler.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Zotlabs/Zot/ZotHandler.php (limited to 'Zotlabs/Zot/ZotHandler.php') 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); + } + +} -- cgit v1.2.3 From 5de1a1ce105525a389c94212745da36ac2d3b7d6 Mon Sep 17 00:00:00 2001 From: redmatrix <redmatrix@redmatrix.me> Date: Mon, 7 Dec 2015 16:06:43 -0800 Subject: extra paren removed --- Zotlabs/Zot/ZotHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Zot/ZotHandler.php') diff --git a/Zotlabs/Zot/ZotHandler.php b/Zotlabs/Zot/ZotHandler.php index 20332074e..f9bb05410 100644 --- a/Zotlabs/Zot/ZotHandler.php +++ b/Zotlabs/Zot/ZotHandler.php @@ -20,7 +20,7 @@ class ZotHandler implements IHandler { } function Request($data) { - zot_reply_message_request($data)); + zot_reply_message_request($data); } function AuthCheck($data,$encrypted) { -- cgit v1.2.3