summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-10 12:32:12 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-24 13:56:28 +0200
commit88600f4ecf6358f5279327cc8ed8471ae7d33b2a (patch)
treef328790ec74d5f5ce64c46a5220c9329583a99f7 /lib/private
parent49fd17ff145c20d987a355518e36f2dfded2fc96 (diff)
downloadnextcloud-server-88600f4ecf6358f5279327cc8ed8471ae7d33b2a.tar.gz
nextcloud-server-88600f4ecf6358f5279327cc8ed8471ae7d33b2a.zip
Add "sendPasswordByTalk" property to shares
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Share20/Share.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index e54497c9b55..71c0453d9e5 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -63,6 +63,8 @@ class Share implements \OCP\Share\IShare {
private $expireDate;
/** @var string */
private $password;
+ /** @var bool */
+ private $sendPasswordByTalk = false;
/** @var string */
private $token;
/** @var int */
@@ -405,6 +407,21 @@ class Share implements \OCP\Share\IShare {
/**
* @inheritdoc
*/
+ public function setSendPasswordByTalk(bool $sendPasswordByTalk) {
+ $this->sendPasswordByTalk = $sendPasswordByTalk;
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getSendPasswordByTalk(): bool {
+ return $this->sendPasswordByTalk;
+ }
+
+ /**
+ * @inheritdoc
+ */
public function setToken($token) {
$this->token = $token;
return $this;