2016-03-20 14:02:55 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* EGroupware API: push JSON commands to client
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package api
|
|
|
|
* @subpackage json
|
|
|
|
* @author Ralf Becker <rb@stylite.de>
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace EGroupware\Api\Json;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for push backends
|
|
|
|
*/
|
|
|
|
interface PushBackend
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Adds any type of data to the message
|
|
|
|
*
|
2019-11-04 09:29:49 +01:00
|
|
|
* @param int $account_id =null account_id to push message too or
|
|
|
|
* null: for current session only or 0 for whole instance / broadcast
|
2016-03-20 14:02:55 +01:00
|
|
|
* @param string $key
|
|
|
|
* @param mixed $data
|
|
|
|
* @throws Exception\NotOnline if $account_id is not online
|
|
|
|
*/
|
|
|
|
public function addGeneric($account_id, $key, $data);
|
|
|
|
}
|