1
0
Fork 0
nc_ext_dav_push/lib/Db/WebPushSubscription.php

23 lines
449 B
PHP
Raw Normal View History

<?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,
];
}
}