From e15270cbb9a6aa483f8d85642c267cfd3dc6d25e Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 22 Mar 2021 16:56:24 +0100 Subject: implement dashboard API for clients, new WidgetItem class, new IAPIWidget interface Signed-off-by: Julien Veyssier --- lib/public/Dashboard/IAPIWidget.php | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/public/Dashboard/IAPIWidget.php (limited to 'lib/public/Dashboard/IAPIWidget.php') diff --git a/lib/public/Dashboard/IAPIWidget.php b/lib/public/Dashboard/IAPIWidget.php new file mode 100644 index 00000000000..42ba9544d8a --- /dev/null +++ b/lib/public/Dashboard/IAPIWidget.php @@ -0,0 +1,41 @@ + + * + * @author Julien Veyssier + * + * @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 . + * + */ + +namespace OCP\Dashboard; + +/** + * interface IAPIWidget + * + * @since 22.0.0 + */ +interface IAPIWidget extends IWidget { + + /** + * @return \OCP\Dashboard\Model\WidgetItem[] The widget items + * @since 22.0.0 + */ + public function getItems(string $userId, ?string $since = null, int $limit = 7): array; +} -- cgit v1.2.3