Skip to content

Commit

Permalink
feat(BRIDGE-37): added notification event types
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroNafta committed Jul 11, 2024
1 parent 2f693de commit 9229ccf
Show file tree
Hide file tree
Showing 2 changed files with 19 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
17 changes: 17 additions & 0 deletions notification_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package proton

type NotificationPayload struct {
Title string
Subtitle string
Body string
Priority string
}

type NotificationEvent struct {
ID string
UID string
UserID string
Type string
Time int64
Payload NotificationPayload
}

0 comments on commit 9229ccf

Please sign in to comment.