aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IEmojiHelper.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-24 15:57:17 +0100
committerVitor Mattos <vitor@php.rio>2022-04-28 07:09:44 -0300
commit902476fa20516ac3abe3c79dd10aad1c8b60910e (patch)
tree15f277f69f714ecdba91c62356cbd7e1f96b4dee /lib/public/IEmojiHelper.php
parent768da60ae2bc11b415b52624121d70316c1e9de6 (diff)
downloadnextcloud-server-902476fa20516ac3abe3c79dd10aad1c8b60910e.tar.gz
nextcloud-server-902476fa20516ac3abe3c79dd10aad1c8b60910e.zip
Extract the EmojiService from user status and add an OCP interface
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/IEmojiHelper.php')
-rw-r--r--lib/public/IEmojiHelper.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/public/IEmojiHelper.php b/lib/public/IEmojiHelper.php
new file mode 100644
index 00000000000..229b08ec68b
--- /dev/null
+++ b/lib/public/IEmojiHelper.php
@@ -0,0 +1,39 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCP;
+
+/**
+ * @since 24.0.0
+ */
+interface IEmojiHelper {
+ /**
+ * @since 24.0.0
+ */
+ public function doesPlatformSupportEmoji(): bool;
+
+ /**
+ * @since 24.0.0
+ */
+ public function isValidSingleEmoji(string $emoji): bool;
+}