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 Aug 26, 2024
1 parent dd607af commit 2462df0
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
}

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

0 comments on commit 2462df0

Please sign in to comment.