Attachments... .

This commit is contained in:
Matias De lellis
2020-06-14 13:55:25 -03:00
parent 16d82bcbae
commit 20e150341c
16 changed files with 532 additions and 73 deletions

28
lib/Db/Attach.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Attach extends Entity implements JsonSerializable {
protected $userId;
protected $noteId;
protected $fileId;
protected $createdAt;
protected $previewUrl;
public function setPreviewUrl($previewUrl) {
$this->previewUrl = $previewUrl;
}
public function jsonSerialize() {
return [
'id' => $this->id,
'note_id' => $this->noteId,
'file_id' => $this->fileId,
'created_at' => $this->createdAt,
'preview_url' => $this->previewUrl,
];
}
}