mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-28 19:04:15 +08:00
Add is_shared property to api
This commit is contained in:
parent
028fb36d8a
commit
2e6de5c3a7
1 changed files with 8 additions and 2 deletions
|
@ -55,6 +55,8 @@ use \OCP\AppFramework\Db\Entity;
|
||||||
* @method string getOtp()
|
* @method string getOtp()
|
||||||
* @method void setHidden(bool $value)
|
* @method void setHidden(bool $value)
|
||||||
* @method string getHidden()
|
* @method string getHidden()
|
||||||
|
* @method void setIsShared(integer $value)
|
||||||
|
* @method string getIsShared()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,6 +87,7 @@ class Credential extends Entity implements \JsonSerializable{
|
||||||
protected $customFields;
|
protected $customFields;
|
||||||
protected $otp;
|
protected $otp;
|
||||||
protected $hidden;
|
protected $hidden;
|
||||||
|
protected $isShared;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
// add types in constructor
|
// add types in constructor
|
||||||
|
@ -93,8 +96,10 @@ class Credential extends Entity implements \JsonSerializable{
|
||||||
$this->addType('renewInterval', 'integer');
|
$this->addType('renewInterval', 'integer');
|
||||||
$this->addType('expireTime', 'integer');
|
$this->addType('expireTime', 'integer');
|
||||||
$this->addType('deleteTime', 'integer');
|
$this->addType('deleteTime', 'integer');
|
||||||
$this->addType('vault_id', 'integer');
|
$this->addType('vaultId', 'integer');
|
||||||
$this->addType('credential_id', '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(),
|
'custom_fields' => $this->getCustomFields(),
|
||||||
'otp' => $this->getOtp(),
|
'otp' => $this->getOtp(),
|
||||||
'hidden' => $this->getHidden(),
|
'hidden' => $this->getHidden(),
|
||||||
|
'is_shared' => $this->getIsShared(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue