-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] Home / FirstMissionClick Logging (#156)
- Loading branch information
Showing
7 changed files
with
75 additions
and
50 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
domain/src/main/java/com/lgtm/domain/logging/FirstMissionClickScheme.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,43 @@ | ||
package com.lgtm.domain.logging | ||
|
||
import com.swm.logging.android.logging_scheme.ClickScheme | ||
|
||
class FirstMissionClickScheme( | ||
missionId : Int, | ||
spendingTime : Long | ||
) : ClickScheme() { | ||
|
||
init { | ||
setLoggingScheme( | ||
eventLogName = "firstMissionClick", | ||
screenName = "HomeFragment", | ||
logVersion = "1", | ||
logData = mutableMapOf( | ||
"missionId" to missionId, | ||
"spendingTime" to spendingTime | ||
) | ||
) | ||
} | ||
|
||
class Builder { | ||
private var missionId : Int = 0 | ||
private var spendingTime : Long = 0 | ||
|
||
fun setMissionId(missionId : Int): Builder { | ||
this.missionId = missionId | ||
return this | ||
} | ||
|
||
fun setSpendingTime(spendingTime : Long): Builder { | ||
this.spendingTime = spendingTime | ||
return this | ||
} | ||
|
||
fun build(): FirstMissionClickScheme { | ||
return FirstMissionClickScheme( | ||
missionId, | ||
spendingTime | ||
) | ||
} | ||
} | ||
} |
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
41 changes: 0 additions & 41 deletions
41
domain/src/main/java/com/lgtm/domain/logging/HomeScreenClickScheme.kt
This file was deleted.
Oops, something went wrong.
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