Add "sendPasswordByTalk" property to shares
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
49fd17ff14
commit
88600f4ecf
|
@ -63,6 +63,8 @@ class Share implements \OCP\Share\IShare {
|
||||||
private $expireDate;
|
private $expireDate;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $password;
|
private $password;
|
||||||
|
/** @var bool */
|
||||||
|
private $sendPasswordByTalk = false;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $token;
|
private $token;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
|
@ -402,6 +404,21 @@ class Share implements \OCP\Share\IShare {
|
||||||
return $this->password;
|
return $this->password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public function setSendPasswordByTalk(bool $sendPasswordByTalk) {
|
||||||
|
$this->sendPasswordByTalk = $sendPasswordByTalk;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public function getSendPasswordByTalk(): bool {
|
||||||
|
return $this->sendPasswordByTalk;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -312,6 +312,29 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function getPassword();
|
public function getPassword();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set if the recipient can start a conversation with the owner to get the
|
||||||
|
* password using Nextcloud Talk.
|
||||||
|
*
|
||||||
|
* @param bool $sendPasswordByTalk
|
||||||
|
* @return \OCP\Share\IShare The modified object
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function setSendPasswordByTalk(bool $sendPasswordByTalk);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get if the recipient can start a conversation with the owner to get the
|
||||||
|
* password using Nextcloud Talk.
|
||||||
|
* The returned value does not take into account other factors, like Talk
|
||||||
|
* being enabled for the owner of the share or not; it just cover whether
|
||||||
|
* the option is enabled for the share itself or not.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function getSendPasswordByTalk(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the public link token.
|
* Set the public link token.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue