2023-09-02 02:41:17 +02:00
|
|
|
<?php
|
|
|
|
namespace OCA\GroupfolderFilesystemSnapshots\Db;
|
|
|
|
|
|
|
|
use JsonSerializable;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
|
|
|
class DiffTask extends Entity implements JsonSerializable {
|
|
|
|
|
|
|
|
protected $userId;
|
|
|
|
protected $groupfolderId;
|
2024-01-23 21:52:33 +01:00
|
|
|
protected $relativePath;
|
2023-09-02 02:41:17 +02:00
|
|
|
protected $snapshotId;
|
|
|
|
protected $timestamp;
|
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
$this->addType('id','integer');
|
|
|
|
$this->addType('groupfolderId','integer');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function jsonSerialize() {
|
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
2024-01-23 21:52:33 +01:00
|
|
|
'userId' => $this->userId,
|
2023-09-02 02:41:17 +02:00
|
|
|
'groupfolderId' => $this->groupfolderId,
|
2024-01-23 21:52:33 +01:00
|
|
|
'relativePath' => $this->relativePath,
|
2023-09-02 02:41:17 +02:00
|
|
|
'snapshotId' => $this->snapshotId,
|
|
|
|
'timestamp' => $this->timestamp,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|