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
|
|
|
|
{
|
2022-04-23 10:58:01 +00:00
|
|
|
protected $matrixControlRoom;
|
|
|
|
protected $matrixAssistedUser; // The ID of the person who created the ticket. Usually the person who needs help.
|
2021-09-18 17:28:10 +00:00
|
|
|
protected $matrixHelperUser;
|
|
|
|
protected $status;
|
|
|
|
protected $version;
|
|
|
|
|
|
|
|
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,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|