From 849231fc34a151a5d5a9e43231ae3509f58ce7c8 Mon Sep 17 00:00:00 2001 From: ElectroNafta Date: Tue, 27 Aug 2024 15:24:59 +0200 Subject: [PATCH] feat(BRIDGE-37): added remote notification event types --- event_types.go | 2 ++ notification_types.go | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 notification_types.go diff --git a/event_types.go b/event_types.go index 8ab67e6..0a4063b 100644 --- a/event_types.go +++ b/event_types.go @@ -24,6 +24,8 @@ type Event struct { Addresses []AddressEvent + Notifications []NotificationEvent + UsedSpace *int64 } diff --git a/notification_types.go b/notification_types.go new file mode 100644 index 0000000..af4b72f --- /dev/null +++ b/notification_types.go @@ -0,0 +1,16 @@ +package proton + +type NotificationPayload struct { + Title string + Subtitle string + Body string +} + +type NotificationEvent struct { + ID string + UID string + UserID string + Type string + Time int64 + Payload NotificationPayload +}