MM-52804 - Implement SendPushNotification plugin api method (#24273)

* add SendPushNotification plugin api method

* lint; add testing.Short bc of the sleep

* add interface and generated layers

* add fields to PluginPushNotification; generate mocks

* SendPushNotification -> SendPluginPushNotification; improved comments

* more comments; fix test

* send api.ctx
Этот коммит содержится в:
Christopher Poile
2023-08-18 13:05:26 -04:00
коммит произвёл GitHub
родитель f13a531bca
Коммит 8418eefb75
9 изменённых файлов: 198 добавлений и 7 удалений

Просмотреть файл

@@ -291,6 +291,9 @@ type Hooks interface {
//
// To cancel a push notification, return true.
//
// Note that this method will be called for push notification sent by plugins, including
// the plugin that created the push notification.
//
// Minimum server version: 9.0
NotificationWillBePushed(pushNotification *model.PluginPushNotification) (cancel bool)
}