From 2e6de5c3a74e234cda6585c49ad4d87613d13d13 Mon Sep 17 00:00:00 2001 From: brantje Date: Wed, 28 Sep 2016 19:42:12 +0200 Subject: [PATCH] Add is_shared property to api --- lib/Db/Credential.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Db/Credential.php b/lib/Db/Credential.php index 9fa76941..061b2afe 100644 --- a/lib/Db/Credential.php +++ b/lib/Db/Credential.php @@ -55,6 +55,8 @@ use \OCP\AppFramework\Db\Entity; * @method string getOtp() * @method void setHidden(bool $value) * @method string getHidden() + * @method void setIsShared(integer $value) + * @method string getIsShared() @@ -85,6 +87,7 @@ class Credential extends Entity implements \JsonSerializable{ protected $customFields; protected $otp; protected $hidden; + protected $isShared; public function __construct() { // add types in constructor @@ -93,8 +96,10 @@ class Credential extends Entity implements \JsonSerializable{ $this->addType('renewInterval', 'integer'); $this->addType('expireTime', 'integer'); $this->addType('deleteTime', 'integer'); - $this->addType('vault_id', 'integer'); - $this->addType('credential_id', 'integer'); + $this->addType('vaultId', 'integer'); + $this->addType('credentialId', 'integer'); + $this->addType('isShared', 'integer'); + $this->addType('hidden', 'integer'); } @@ -124,6 +129,7 @@ class Credential extends Entity implements \JsonSerializable{ 'custom_fields' => $this->getCustomFields(), 'otp' => $this->getOtp(), 'hidden' => $this->getHidden(), + 'is_shared' => $this->getIsShared(), ]; } } \ No newline at end of file