Skip to content

Commit

Permalink
feat(BRIDGE-37): added remote notification event types
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroNafta committed Aug 29, 2024
1 parent ca6bb64 commit d663a2e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type Event struct {

Addresses []AddressEvent

Notifications []NotificationEvent

UsedSpace *int64
}

Expand Down
16 changes: 16 additions & 0 deletions notification_types.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d663a2e

Please sign in to comment.