Skip to content

Commit

Permalink
Backend/enh/metro-warrior-coin-notification-type
Browse files Browse the repository at this point in the history
  • Loading branch information
DwivediAman-exe authored and hkmangla committed Dec 4, 2024
1 parent 1ad649c commit 0d44f4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ data FCMNotificationType
| DRIVER_UNBLOCKED
| POST_RIDE_SAFETY_CHECK
| DRIVER_STOP_DETECTED
| TO_METRO_COINS
| FROM_METRO_COINS
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 @@ -116,6 +116,8 @@ interfaceCategoryToFCMNotificationType = \case
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
Interface.TO_METRO_COINS -> FCM.TO_METRO_COINS
Interface.FROM_METRO_COINS -> FCM.FROM_METRO_COINS

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

$(mkBeamInstancesForEnum ''Category)
Expand Down

0 comments on commit 0d44f4c

Please sign in to comment.