AzuraCast/src/Message/DispatchWebhookMessage.php

29 lines
563 B
PHP
Raw Permalink Normal View History

<?php
2021-07-19 05:53:45 +00:00
declare(strict_types=1);
namespace App\Message;
use App\Entity\Api\NowPlaying\NowPlaying;
2021-12-11 03:48:19 +00:00
use App\MessageQueue\QueueManagerInterface;
2022-07-01 06:06:29 +00:00
final class DispatchWebhookMessage extends AbstractUniqueMessage
{
public int $station_id;
public NowPlaying $np;
2021-07-19 05:53:45 +00:00
/** @var array<string> */
public array $triggers = [];
public function getIdentifier(): string
{
return 'DispatchWebhookMessage_' . $this->station_id;
}
public function getQueue(): string
{
2021-12-11 03:48:19 +00:00
return QueueManagerInterface::QUEUE_HIGH_PRIORITY;
}
}