add basich sharing functionality logic

This commit is contained in:
Vinzenz
2016-05-31 14:16:43 +02:00
parent 9eede1756d
commit df3db489f4
9 changed files with 49 additions and 15 deletions

22
db/noteshare.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class NoteShare extends Entity implements JsonSerializable {
protected $noteId;
protected $sharedUser;
protected $sharedGroup;
public function jsonSerialize() {
return [
'id' => $this->id,
'noteid' => $this->noteId,
'shareduser' => $this->sharedUser,
'sharedgroup' => $this->sharedGroup
];
}
}