summaryrefslogtreecommitdiffstats
path: root/lib/Db/Feed.php
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2020-10-09 11:17:44 +0000
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-10-09 13:59:23 +0200
commita74491ecdefb022c3cd9712ae46bff7a71c8eade (patch)
tree9594db890cdfed05e40259d1211e065345fc0c4f /lib/Db/Feed.php
parentc6cef6c4accf633ca526ded6f5ad2ad47edd4716 (diff)
Add Type Info to Entities
Signed-off-by: Tilo Spannagel <development@tilosp.de>
Diffstat (limited to 'lib/Db/Feed.php')
-rw-r--r--lib/Db/Feed.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php
index 9af2f7dc2..80d425117 100644
--- a/lib/Db/Feed.php
+++ b/lib/Db/Feed.php
@@ -76,6 +76,33 @@ class Feed extends Entity implements IAPI, \JsonSerializable
/** @var Item[] */
public $items = [];
+ public function __construct()
+ {
+ $this->addType('userId', 'string');
+ $this->addType('urlHash', 'string');
+ $this->addType('url', 'string');
+ $this->addType('title', 'string');
+ $this->addType('faviconLink', 'string');
+ $this->addType('added', 'integer');
+ $this->addType('folderId', 'integer');
+ $this->addType('link', 'string');
+ $this->addType('preventUpdate', 'boolean');
+ $this->addType('deletedAt', 'integer');
+ $this->addType('articlesPerUpdate', 'integer');
+ $this->addType('httpLastModified', 'string');
+ $this->addType('lastModified', 'string');
+ $this->addType('httpEtag', 'string');
+ $this->addType('location', 'string');
+ $this->addType('ordering', 'integer');
+ $this->addType('fullTextEnabled', 'boolean');
+ $this->addType('pinned', 'boolean');
+ $this->addType('updateMode', 'integer');
+ $this->addType('updateErrorCount', 'integer');
+ $this->addType('lastUpdateError', 'string');
+ $this->addType('basicAuthUser', 'string');
+ $this->addType('basicAuthPassword', 'string');
+ }
+
/**
* @return int|null
*/