mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
fix(openapi): Fix some warnings
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6d58c6686e
commit
25a7cd4dc7
13 changed files with 18 additions and 18 deletions
|
|
@ -14,7 +14,7 @@ use OCA\Talk\Participant;
|
|||
use OCA\Talk\Room;
|
||||
use OCP\AppFramework\OCSController;
|
||||
|
||||
abstract class AEnvironmentAwareController extends OCSController {
|
||||
abstract class AEnvironmentAwareOCSController extends OCSController {
|
||||
protected int $apiVersion = 1;
|
||||
protected ?Room $room = null;
|
||||
protected ?Participant $participant = null;
|
||||
|
|
@ -37,7 +37,7 @@ use Psr\Log\LoggerInterface;
|
|||
/**
|
||||
* @psalm-import-type TalkRoom from ResponseDefinitions
|
||||
*/
|
||||
class AvatarController extends AEnvironmentAwareController {
|
||||
class AvatarController extends AEnvironmentAwareOCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use OCP\IRequest;
|
|||
/**
|
||||
* @psalm-import-type TalkBan from ResponseDefinitions
|
||||
*/
|
||||
class BanController extends AEnvironmentAwareController {
|
||||
class BanController extends AEnvironmentAwareOCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ use Psr\Log\LoggerInterface;
|
|||
* @psalm-import-type TalkBot from ResponseDefinitions
|
||||
* @psalm-import-type TalkBotWithDetails from ResponseDefinitions
|
||||
*/
|
||||
class BotController extends AEnvironmentAwareController {
|
||||
class BotController extends AEnvironmentAwareOCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use OCP\IRequest;
|
|||
/**
|
||||
* @psalm-import-type TalkRoom from ResponseDefinitions
|
||||
*/
|
||||
class BreakoutRoomController extends AEnvironmentAwareController {
|
||||
class BreakoutRoomController extends AEnvironmentAwareOCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ use OCP\IUserManager;
|
|||
/**
|
||||
* @psalm-import-type TalkCallPeer from ResponseDefinitions
|
||||
*/
|
||||
class CallController extends AEnvironmentAwareController {
|
||||
class CallController extends AEnvironmentAwareOCSController {
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
|
|
@ -282,7 +282,7 @@ class CallController extends AEnvironmentAwareController {
|
|||
}
|
||||
|
||||
/**
|
||||
* Join call on the host server using the session id of the federated user.
|
||||
* Join call on the host server using the session id of the federated user
|
||||
*
|
||||
* @param string $sessionId Federated session id to join with
|
||||
* @param int<0, 15>|null $flags In-Call flags
|
||||
|
|
@ -449,7 +449,7 @@ class CallController extends AEnvironmentAwareController {
|
|||
|
||||
/**
|
||||
* Update the in-call flags on the host server using the session id of the
|
||||
* federated user.
|
||||
* federated user
|
||||
*
|
||||
* @param string $sessionId Federated session id to update the flags with
|
||||
* @param int<0, 15> $flags New flags
|
||||
|
|
@ -531,7 +531,7 @@ class CallController extends AEnvironmentAwareController {
|
|||
|
||||
/**
|
||||
* Leave a call on the host server using the session id of the federated
|
||||
* user.
|
||||
* user
|
||||
*
|
||||
* @param string $sessionId Federated session id to leave with
|
||||
* @return DataResponse<Http::STATUS_OK|Http::STATUS_NOT_FOUND, null, array{}>
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ use Psr\Log\LoggerInterface;
|
|||
* @psalm-import-type TalkRichObjectParameter from ResponseDefinitions
|
||||
* @psalm-import-type TalkRoom from ResponseDefinitions
|
||||
*/
|
||||
class ChatController extends AEnvironmentAwareController {
|
||||
class ChatController extends AEnvironmentAwareOCSController {
|
||||
/** @var string[] */
|
||||
protected array $guestNames;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use OCP\AppFramework\Http\Attribute\PublicPage;
|
|||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\IRequest;
|
||||
|
||||
class GuestController extends AEnvironmentAwareController {
|
||||
class GuestController extends AEnvironmentAwareOCSController {
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use OCP\IRequest;
|
|||
* @psalm-import-type TalkMatterbridgeProcessState from ResponseDefinitions
|
||||
* @psalm-import-type TalkMatterbridgeWithProcessState from ResponseDefinitions
|
||||
*/
|
||||
class MatterbridgeController extends AEnvironmentAwareController {
|
||||
class MatterbridgeController extends AEnvironmentAwareOCSController {
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ use Psr\Log\LoggerInterface;
|
|||
* @psalm-import-type TalkPoll from ResponseDefinitions
|
||||
* @psalm-import-type TalkPollDraft from ResponseDefinitions
|
||||
*/
|
||||
class PollController extends AEnvironmentAwareController {
|
||||
class PollController extends AEnvironmentAwareOCSController {
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use OCP\IRequest;
|
|||
/**
|
||||
* @psalm-import-type TalkReaction from ResponseDefinitions
|
||||
*/
|
||||
class ReactionController extends AEnvironmentAwareController {
|
||||
class ReactionController extends AEnvironmentAwareOCSController {
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ use OCP\Http\Client\IClientService;
|
|||
use OCP\IRequest;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class RecordingController extends AEnvironmentAwareController {
|
||||
class RecordingController extends AEnvironmentAwareOCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ use Psr\Log\LoggerInterface;
|
|||
* @psalm-import-type TalkParticipant from ResponseDefinitions
|
||||
* @psalm-import-type TalkRoom from ResponseDefinitions
|
||||
*/
|
||||
class RoomController extends AEnvironmentAwareController {
|
||||
class RoomController extends AEnvironmentAwareOCSController {
|
||||
protected array $commonReadMessages = [];
|
||||
|
||||
public function __construct(
|
||||
|
|
@ -1771,7 +1771,7 @@ class RoomController extends AEnvironmentAwareController {
|
|||
}
|
||||
|
||||
/**
|
||||
* Join room on the host server using the session id of the federated user.
|
||||
* Join room on the host server using the session id of the federated user
|
||||
*
|
||||
* The session id can be null only for requests from Talk < 20.
|
||||
*
|
||||
|
|
@ -2058,7 +2058,7 @@ class RoomController extends AEnvironmentAwareController {
|
|||
}
|
||||
|
||||
/**
|
||||
* Leave room on the host server using the session id of the federated user.
|
||||
* Leave room on the host server using the session id of the federated user
|
||||
*
|
||||
* @param string $token Token of the room
|
||||
* @param string $sessionId Federated session id to leave with
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue