mirror of
https://github.com/nextcloud/spreed.git
synced 2025-08-16 15:27:59 +00:00
32 lines
626 B
PHP
32 lines
626 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Talk\OCP;
|
|
|
|
use OCA\Talk\Room;
|
|
use OCP\IURLGenerator;
|
|
use OCP\Talk\IConversation;
|
|
|
|
class Conversation implements IConversation {
|
|
|
|
public function __construct(
|
|
protected IURLGenerator $url,
|
|
protected Room $room,
|
|
) {
|
|
}
|
|
|
|
public function getId(): string {
|
|
return $this->room->getToken();
|
|
}
|
|
|
|
public function getAbsoluteUrl(): string {
|
|
return $this->url->linkToRouteAbsolute('spreed.Page.showCall', ['token' => $this->room->getToken()]);
|
|
}
|
|
}
|