Files
quicknotes/db/share.php
Vinzenz Rosenkranz 45fa10394f set sharing layout
2016-05-31 00:38:56 +02:00

23 lines
391 B
PHP

<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Share extends Entity implements JsonSerializable {
protected $noteId;
protected $sharedUser;
protected $sharedGroup;
public function jsonSerialize() {
return [
'id' => $this->id,
'note' => $this->noteId,
'user' => $this->sharedUser,
'group' => $this->sharedGroup
];
}
}