mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Allow types to be method specific
This commit is contained in:
parent
5768b3fe2c
commit
8d47260144
2 changed files with 15 additions and 2 deletions
|
|
@ -38,6 +38,8 @@ namespace OCP\Activity;
|
|||
* @since 8.0.0
|
||||
*/
|
||||
interface IExtension {
|
||||
const METHOD_STREAM = 'stream';
|
||||
const METHOD_MAIL = 'email';
|
||||
|
||||
const PRIORITY_VERYLOW = 10;
|
||||
const PRIORITY_LOW = 20;
|
||||
|
|
@ -50,8 +52,13 @@ interface IExtension {
|
|||
* If no additional types are to be added false is to be returned
|
||||
*
|
||||
* @param string $languageCode
|
||||
* @return array|false
|
||||
* @return array|false Array "stringID of the type" => "translated string description for the setting"
|
||||
* or Array "stringID of the type" => [
|
||||
* 'desc' => "translated string description for the setting"
|
||||
* 'methods' => [self::METHOD_*],
|
||||
* ]
|
||||
* @since 8.0.0
|
||||
* @changed 8.2.0 - Added support to allow limiting notifications to certain methods
|
||||
*/
|
||||
public function getNotificationTypes($languageCode);
|
||||
|
||||
|
|
|
|||
|
|
@ -81,9 +81,15 @@ interface IManager {
|
|||
|
||||
/**
|
||||
* Will return additional notification types as specified by other apps
|
||||
*
|
||||
* @param string $languageCode
|
||||
* @return array
|
||||
* @return array Array "stringID of the type" => "translated string description for the setting"
|
||||
* or Array "stringID of the type" => [
|
||||
* 'desc' => "translated string description for the setting"
|
||||
* 'methods' => [\OCP\Activity\IExtension::METHOD_*],
|
||||
* ]
|
||||
* @since 8.0.0
|
||||
* @changed 8.2.0 - Added support to allow limiting notifications to certain methods
|
||||
*/
|
||||
function getNotificationTypes($languageCode);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue