Files
nextcloud-spreed/lib/OCP/Conversation.php
Joas Schilling 1ccbf67da2 chore: Run SPDX convertor
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-26 13:02:15 +02:00

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()]);
}
}