mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
23 lines
409 B
PHP
23 lines
409 B
PHP
<?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
|
|
];
|
|
}
|
|
}
|