summaryrefslogtreecommitdiffstats
path: root/lib/public
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/public
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/public')
-rw-r--r--lib/public/Share/IShare.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index 5303cde45a6..43543fdad47 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -312,6 +312,29 @@ interface IShare {
*/
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.
*