Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ data FCMNotificationType
| USER_FAVOURITE_DRIVER
| DRIVER_UNBLOCKED
| POST_RIDE_SAFETY_CHECK
| DRIVER_STOP_DETECTED
deriving (Show, Eq, Read, Ord, Generic, ToJSON, FromJSON)
deriving (PrettyShow) via Showable FCMNotificationType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ interfaceCategoryToFCMNotificationType = \case
Interface.DRIVER_HAS_REACHED_DESTINATION -> FCM.DRIVER_HAS_REACHED_DESTINATION
Interface.USER_FAVOURITE_DRIVER -> FCM.USER_FAVOURITE_DRIVER
Interface.POST_RIDE_SAFETY_CHECK -> FCM.POST_RIDE_SAFETY_CHECK
Interface.DRIVER_STOP_DETECTED -> FCM.DRIVER_STOP_DETECTED

interfaceShowNotificationToFCMShowNotification :: Interface.ShowNotification -> FCM.FCMShowNotification
interfaceShowNotificationToFCMShowNotification = \case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ data Category
| DRIVER_HAS_REACHED_DESTINATION
| USER_FAVOURITE_DRIVER
| POST_RIDE_SAFETY_CHECK
| DRIVER_STOP_DETECTED
deriving (Show, Eq, Read, Generic, Ord, ToSchema, ToJSON, FromJSON)

$(mkBeamInstancesForEnum ''Category)
Expand Down