Add f7push v0.1: FCM device registry and push API for F7cloud.
Portable occ-based config, OCS endpoints for APK registration, notification relay, and server-side push dispatch.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user