commit 5bc8cc403907f663d3b60cd7d0bcb67fc0a24f54
parent a99e94bccdbaf76bb1218c91ba7adf446f1456c8
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Thu, 16 Jan 2025 19:42:40 +0800
notify.Notification: add ID field
This will be the term on which the application can determine what type
of notification was activated.
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/notify.go b/notify.go
@@ -28,6 +28,8 @@ type Callback func(err error, id string, userData map[string]string)
// Notification describes the notification.
type Notification struct {
+ ID string
+
// Title text of the notification.
Title string