23 lines
449 B
PHP
23 lines
449 B
PHP
|
<?php
|
||
|
|
||
|
namespace OCA\DavPush\Db;
|
||
|
|
||
|
use JsonSerializable;
|
||
|
|
||
|
use OCP\AppFramework\Db\Entity;
|
||
|
|
||
|
class WebPushSubscription extends Entity implements JsonSerializable {
|
||
|
protected $subscriptionId;
|
||
|
protected $pushResource;
|
||
|
|
||
|
public function __construct() {
|
||
|
$this->addType('subscriptionId','integer');
|
||
|
}
|
||
|
|
||
|
public function jsonSerialize(): array {
|
||
|
return [
|
||
|
'subscriptionId' => $this->subscriptionId,
|
||
|
'pushResource' => $this->pushResource,
|
||
|
];
|
||
|
}
|
||
|
}
|