mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
39 lines
669 B
PHP
39 lines
669 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Events;
|
||
|
|
||
|
use App\Models\Player;
|
||
|
use App\Events\Event;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||
|
|
||
|
class GetPlayerJson extends Event
|
||
|
{
|
||
|
use SerializesModels;
|
||
|
|
||
|
public $player;
|
||
|
|
||
|
public $api_type;
|
||
|
|
||
|
/**
|
||
|
* Create a new event instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct(Player $player, $api_type)
|
||
|
{
|
||
|
$this->player = $player;
|
||
|
$this->api_type = $api_type;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the channels the event should be broadcast on.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function broadcastOn()
|
||
|
{
|
||
|
return [];
|
||
|
}
|
||
|
}
|