Created
May 13, 2025 08:44
-
-
Save LloydBlv/f08c6b606e819360ab9c95889e8e2807 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PushMessageMapper @Inject constructor() { | |
fun map(message: RemoteMessage): PushMessage { | |
val data = message.data | |
return PushMessage( | |
title = data["title"], | |
body = data["body"], | |
deeplink = data["deeplink"], | |
type = data["type"] | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment