df4e2dddec
Portable occ-based config, OCS endpoints for APK registration, notification relay, and server-side push dispatch.
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\F7Push\Db;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method string getUserId()
|
|
* @method void setUserId(string $userId)
|
|
* @method string getDeviceId()
|
|
* @method void setDeviceId(string $deviceId)
|
|
* @method string getFcmToken()
|
|
* @method void setFcmToken(string $fcmToken)
|
|
* @method string getPlatform()
|
|
* @method void setPlatform(string $platform)
|
|
* @method string getClientApp()
|
|
* @method void setClientApp(string $clientApp)
|
|
* @method int getCreatedAt()
|
|
* @method void setCreatedAt(int $createdAt)
|
|
* @method int getLastSeen()
|
|
* @method void setLastSeen(int $lastSeen)
|
|
*/
|
|
class Device extends Entity {
|
|
protected $userId = '';
|
|
protected $deviceId = '';
|
|
protected $fcmToken = '';
|
|
protected $platform = 'android';
|
|
protected $clientApp = 'f7cloud-apk';
|
|
protected $createdAt = 0;
|
|
protected $lastSeen = 0;
|
|
|
|
protected static $propertyTypes = [
|
|
'id' => 'integer',
|
|
'userId' => 'string',
|
|
'deviceId' => 'string',
|
|
'fcmToken' => 'string',
|
|
'platform' => 'string',
|
|
'clientApp' => 'string',
|
|
'createdAt' => 'integer',
|
|
'lastSeen' => 'integer',
|
|
];
|
|
}
|