<?php

/**
 * This file is part of the bitrix24-php-sdk package.
 *
 * © Maksim Mesilov <mesilov.maxim@gmail.com>
 *
 * For the full copyright and license information, please view the MIT-LICENSE.txt
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Bitrix24\SDK\Services\Telephony\Events\OnVoximplantCallInit;

use Bitrix24\SDK\Application\Requests\Events\AbstractEventRequest;

class OnVoximplantCallInit extends AbstractEventRequest
{
    public const CODE = 'ONVOXIMPLANTCALLINIT';

    public function getPayload(): OnVoximplantCallInitEventPayload
    {
        return new OnVoximplantCallInitEventPayload($this->eventPayload['data']);
    }
}