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 @@ -175,6 +175,7 @@ interfaceCategoryToFCMNotificationType = \case
Interface.TRAINING_VIDEO -> FCM.TRAINING_VIDEO
Interface.DRIVER_INSPECTION -> FCM.DRIVER_INSPECTION
Interface.VEHICLE_INSPECTION -> FCM.VEHICLE_INSPECTION
Interface.FEEDBACK_BADGE_PN -> FCM.FEEDBACK_BADGE_PN

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

$(mkBeamInstancesForEnum ''Category)
Expand Down