Created
April 13, 2019 19:21
-
-
Save renanboni/044b43c82d61549e0c0242c06798dd8c to your computer and use it in GitHub Desktop.
This file contains 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 FirebaseMapper: Mapper<Event, FirebaseEvent> { | |
override fun mapFrom(e: Event): FirebaseEvent { | |
val firebaseEvent = FirebaseEvent(e.name) | |
e.params?.let { | |
val bundle = Bundle() | |
for (param in it) { | |
bundle.putString(param.key, param.value as String) | |
} | |
} | |
return firebaseEvent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment