-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APPS-3293: send catalog language analytics
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...main/java/org/stepik/android/domain/filter/analytic/ContenLanguageChangedAnalyticEvent.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,27 @@ | ||
package org.stepik.android.domain.filter.analytic | ||
|
||
import org.stepik.android.domain.base.analytic.AnalyticEvent | ||
|
||
class ContenLanguageChangedAnalyticEvent( | ||
language: String, | ||
source: Source | ||
) : AnalyticEvent { | ||
companion object { | ||
private const val PARAM_LANGUAGE = "language" | ||
private const val PARAM_SOURCE = "source" | ||
} | ||
|
||
override val name: String = | ||
"Content language changed" | ||
|
||
override val params: Map<String, Any> = | ||
mapOf( | ||
PARAM_LANGUAGE to language, | ||
PARAM_SOURCE to source.value | ||
) | ||
|
||
enum class Source(val value: String) { | ||
CATALOG("catalog"), | ||
SETTINGS("settings") | ||
} | ||
} |
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