Skip to content

Commit

Permalink
Backend/enh/added-fcm-type-for-fleet-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
prashant601 committed Dec 25, 2024
1 parent 5a2b2fd commit 41ee1cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ data FCMNotificationType
| WMB_TRIP_ASSIGNED
| WMB_TRIP_STARTED
| WMB_TRIP_FINISHED
| FLEET_CONSENT
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 @@ -135,6 +135,7 @@ interfaceCategoryToFCMNotificationType = \case
Interface.WMB_TRIP_ASSIGNED -> FCM.WMB_TRIP_ASSIGNED
Interface.WMB_TRIP_STARTED -> FCM.WMB_TRIP_STARTED
Interface.WMB_TRIP_FINISHED -> FCM.WMB_TRIP_FINISHED
Interface.FLEET_CONSENT -> FCM.FLEET_CONSENT

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

$(mkBeamInstancesForEnum ''Category)
Expand Down

0 comments on commit 41ee1cc

Please sign in to comment.