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 +}