mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 23:57:50 -05:00
feat(BRIDGE-37): added remote notification event types
This commit is contained in:
committed by
ElectroNafta
parent
ca6bb6449b
commit
d663a2ef90
@@ -24,6 +24,8 @@ type Event struct {
|
||||
|
||||
Addresses []AddressEvent
|
||||
|
||||
Notifications []NotificationEvent
|
||||
|
||||
UsedSpace *int64
|
||||
}
|
||||
|
||||
|
||||
16
notification_types.go
Normal file
16
notification_types.go
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user