-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor RuleActionHideProgramStage to kotlin
- Loading branch information
1 parent
a85b765
commit dd7334f
Showing
5 changed files
with
18 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.hisp.dhis.rules.models | ||
|
||
import javax.annotation.Nonnull | ||
|
||
fun interface RuleAction { | ||
fun data(): String | ||
} |
14 changes: 0 additions & 14 deletions
14
src/main/java/org/hisp/dhis/rules/models/RuleActionHideProgramStage.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/org/hisp/dhis/rules/models/RuleActionHideProgramStage.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,10 @@ | ||
package org.hisp.dhis.rules.models | ||
|
||
data class RuleActionHideProgramStage( | ||
val programStage: String, | ||
val data: String = "" | ||
) : RuleAction { | ||
override fun data(): String { | ||
return data | ||
} | ||
} |
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