-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared add notification id to notification context (#665)
^ALTAPPS-984
- Loading branch information
1 parent
f58e2b8
commit 4d25700
Showing
8 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
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
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
14 changes: 14 additions & 0 deletions
14
...kill/app/notification/remote/domain/analytic/PushNotificationDataAnalyticContextMapper.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.hyperskill.app.notification.remote.domain.analytic | ||
|
||
import org.hyperskill.app.notification.remote.domain.model.PushNotificationData | ||
import ru.nobird.app.core.model.mapOfNotNull | ||
|
||
internal object PushNotificationDataAnalyticContextMapper { | ||
fun map(pushNotificationData: PushNotificationData): Map<String, Any> = | ||
mapOfNotNull( | ||
PushNotificationHyperskillAnalyticParams.PARAM_TYPE to pushNotificationData.typeString, | ||
PushNotificationHyperskillAnalyticParams.PARAM_CATEGORY to pushNotificationData.categoryString, | ||
PushNotificationHyperskillAnalyticParams.PARAM_IMAGE to pushNotificationData.image, | ||
PushNotificationHyperskillAnalyticParams.PARAM_NOTIFICATION_ID to pushNotificationData.notificationId | ||
) | ||
} |
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
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
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
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
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