Zoom::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. Zoom
  4. __construct
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/integration/zoom.php
  • Класс: BitrixImCallIntegrationZoom
  • Вызов: Zoom::__construct
public function __construct(int $userId, string $chatId)
{
	global $USER;

	if($userId === null)
	{
		if(is_object($USER) && $USER->IsAuthorized())
		{
			$this->userId = $USER->GetID();
		}
	}
	else
	{
		$this->userId = $userId;
	}

	if (BitrixImCommon::isChatId($chatId))
	{
		$this->chatType = self::GROUP_CHAT;
		$this->chatId = BitrixImDialog::getChatId($chatId);
	}
	else
	{
		$this->chatType = self::PERSONAL_CHAT;
		$this->chatId = $chatId;
	}

	$this->zoomChatName = $this->prepareZoomChatName($chatId);

	$accessToken = $this->getAccessToken();
	if ($accessToken)
	{
		$this->accessToken = $accessToken;
	}
}

Добавить комментарий