mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
26 lines
464 B
PHP
26 lines
464 B
PHP
<?php
|
|
namespace OCA\QuickNotes\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
class NoteShare extends Entity implements JsonSerializable {
|
|
|
|
protected $noteId;
|
|
protected $userId;
|
|
protected $sharedUser;
|
|
protected $sharedGroup;
|
|
|
|
public function jsonSerialize() {
|
|
return [
|
|
'id' => $this->id,
|
|
'user_id' => $this->userId,
|
|
'note_id' => $this->noteId,
|
|
'shared_user' => $this->sharedUser,
|
|
'shared_group' => $this->sharedGroup
|
|
];
|
|
}
|
|
|
|
}
|