Initial Upload
This commit is contained in:
119
lib/Service/DisplayNotifyServiceInterface.php
Normal file
119
lib/Service/DisplayNotifyServiceInterface.php
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2023 Xibo Signage Ltd
|
||||
*
|
||||
* Xibo - Digital Signage - https://xibosignage.com
|
||||
*
|
||||
* This file is part of Xibo.
|
||||
*
|
||||
* Xibo is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* Xibo is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
namespace Xibo\Service;
|
||||
|
||||
use Stash\Interfaces\PoolInterface;
|
||||
use Xibo\Entity\Display;
|
||||
use Xibo\Factory\ScheduleFactory;
|
||||
use Xibo\Storage\StorageServiceInterface;
|
||||
|
||||
/**
|
||||
* Interface DisplayNotifyServiceInterface
|
||||
* @package Xibo\Service
|
||||
*/
|
||||
interface DisplayNotifyServiceInterface
|
||||
{
|
||||
/**
|
||||
* DisplayNotifyServiceInterface constructor.
|
||||
* @param ConfigServiceInterface $config
|
||||
* @param StorageServiceInterface $store
|
||||
* @param LogServiceInterface $log
|
||||
* @param PoolInterface $pool
|
||||
* @param PlayerActionServiceInterface $playerActionService
|
||||
* @param ScheduleFactory $scheduleFactory
|
||||
*/
|
||||
public function __construct($config, $store, $log, $pool, $playerActionService, $scheduleFactory);
|
||||
|
||||
/**
|
||||
* Initialise
|
||||
* @return $this
|
||||
*/
|
||||
public function init();
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function collectNow();
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function collectLater();
|
||||
|
||||
/**
|
||||
* Process Queue of Display Notifications
|
||||
* @return $this
|
||||
*/
|
||||
public function processQueue();
|
||||
|
||||
/**
|
||||
* Notify by Display Id
|
||||
* @param $displayId
|
||||
*/
|
||||
public function notifyByDisplayId($displayId);
|
||||
|
||||
/**
|
||||
* Notify by Display Group Id
|
||||
* @param $displayGroupId
|
||||
*/
|
||||
public function notifyByDisplayGroupId($displayGroupId);
|
||||
|
||||
/**
|
||||
* Notify by CampaignId
|
||||
* @param $campaignId
|
||||
*/
|
||||
public function notifyByCampaignId($campaignId);
|
||||
|
||||
/**
|
||||
* Notify by DataSetId
|
||||
* @param $dataSetId
|
||||
*/
|
||||
public function notifyByDataSetId($dataSetId);
|
||||
|
||||
/**
|
||||
* Notify by PlaylistId
|
||||
* @param $playlistId
|
||||
*/
|
||||
public function notifyByPlaylistId($playlistId);
|
||||
|
||||
/**
|
||||
* Notify By Layout Code
|
||||
* @param $code
|
||||
*/
|
||||
public function notifyByLayoutCode($code);
|
||||
|
||||
/**
|
||||
* Notify by Menu Board ID
|
||||
* @param $menuId
|
||||
*/
|
||||
public function notifyByMenuBoardId($menuId);
|
||||
|
||||
/**
|
||||
* Notify that data has been updated for this display
|
||||
* @param \Xibo\Entity\Display $display
|
||||
* @param int $widgetId
|
||||
* @return void
|
||||
*/
|
||||
public function notifyDataUpdate(Display $display, int $widgetId): void;
|
||||
}
|
||||
Reference in New Issue
Block a user