migrate object to data object (#1135)

This commit is contained in:
Benoit Marty 2023-08-24 09:32:44 +02:00
parent 4218a836d5
commit 7083abcf09
98 changed files with 314 additions and 357 deletions

View file

@ -17,6 +17,6 @@
package io.element.android.features.rageshake.api.crash
sealed interface CrashDetectionEvents {
object ResetAllCrashData : CrashDetectionEvents
object ResetAppHasCrashed : CrashDetectionEvents
data object ResetAllCrashData : CrashDetectionEvents
data object ResetAppHasCrashed : CrashDetectionEvents
}

View file

@ -19,9 +19,9 @@ package io.element.android.features.rageshake.api.detection
import io.element.android.features.rageshake.api.screenshot.ImageResult
sealed interface RageshakeDetectionEvents {
object Dismiss : RageshakeDetectionEvents
object Disable : RageshakeDetectionEvents
object StartDetection : RageshakeDetectionEvents
object StopDetection : RageshakeDetectionEvents
data object Dismiss : RageshakeDetectionEvents
data object Disable : RageshakeDetectionEvents
data object StartDetection : RageshakeDetectionEvents
data object StopDetection : RageshakeDetectionEvents
data class ProcessScreenshot(val imageResult: ImageResult) : RageshakeDetectionEvents
}