2021-09-18 17:28:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\UPschooling\Db;
|
|
|
|
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
|
|
|
class MatrixTicket extends Entity implements JsonSerializable
|
|
|
|
{
|
2023-07-19 12:11:47 +00:00
|
|
|
protected string $matrixControlRoom;
|
|
|
|
protected string $matrixAssistedUser; // The ID of the person who created the ticket. Usually the person who needs help.
|
|
|
|
protected string $matrixHelperUser;
|
|
|
|
protected string $status;
|
|
|
|
protected int $version;
|
2021-09-18 17:28:10 +00:00
|
|
|
|
|
|
|
public function jsonSerialize(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
2022-04-23 10:58:01 +00:00
|
|
|
'matrixControlRoom' => $this->matrixControlRoom,
|
2021-09-18 17:28:10 +00:00
|
|
|
'matrixAssistedUser' => $this->matrixAssistedUser,
|
|
|
|
'matrixHelperUser' => $this->matrixHelperUser,
|
|
|
|
'status' => $this->status,
|
|
|
|
'version' => $this->version,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|