-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark facility changed as false when facility is changed
- Loading branch information
1 parent
532f91a
commit e6ce4dc
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
app/src/main/java/org/simple/clinic/facility/alertchange/AlertFacilityChangeEvent.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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package org.simple.clinic.facility.alertchange | ||
|
||
sealed interface AlertFacilityChangeEvent { | ||
import org.simple.clinic.widgets.UiEvent | ||
|
||
sealed interface AlertFacilityChangeEvent : UiEvent { | ||
|
||
data class IsFacilityChangedStatusLoaded(val isFacilityChanged: Boolean) : AlertFacilityChangeEvent | ||
|
||
data object FacilityChangedMarkedAsFalse : AlertFacilityChangeEvent | ||
|
||
data object YesButtonClicked : AlertFacilityChangeEvent | ||
data object YesButtonClicked : AlertFacilityChangeEvent { | ||
override val analyticsName: String = "Alert Facility Changed Sheet:Yes Button Clicked" | ||
} | ||
|
||
data object FacilityChanged : AlertFacilityChangeEvent | ||
} |
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