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