4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-23 17:37:05 +00:00
AzuraCast/src/Message/DispatchWebhookMessage.php
Buster "Silver Eagle" Neece e0e3001a78
Class finalization part 1.
2022-07-01 01:06:29 -05:00

29 lines
563 B
PHP

<?php
declare(strict_types=1);
namespace App\Message;
use App\Entity\Api\NowPlaying\NowPlaying;
use App\MessageQueue\QueueManagerInterface;
final class DispatchWebhookMessage extends AbstractUniqueMessage
{
public int $station_id;
public NowPlaying $np;
/** @var array<string> */
public array $triggers = [];
public function getIdentifier(): string
{
return 'DispatchWebhookMessage_' . $this->station_id;
}
public function getQueue(): string
{
return QueueManagerInterface::QUEUE_HIGH_PRIORITY;
}
}