added DiffTask Entity and Mapper
This commit is contained in:
parent
31f0fa6b0f
commit
d8651c7780
2 changed files with 65 additions and 0 deletions
28
lib/Db/DiffTask.php
Normal file
28
lib/Db/DiffTask.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
namespace OCA\GroupfolderFilesystemSnapshots\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
class DiffTask extends Entity implements JsonSerializable {
|
||||
|
||||
protected $userId;
|
||||
protected $groupfolderId;
|
||||
protected $snapshotId;
|
||||
protected $timestamp;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
$this->addType('groupfolderId','integer');
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'groupfolderId' => $this->groupfolderId,
|
||||
'snapshotId' => $this->snapshotId,
|
||||
'timestamp' => $this->timestamp,
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue