Skip to content

Commit

Permalink
Fix RuleAction interface
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante committed Jan 2, 2024
1 parent 1a817c4 commit 8dafdeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.hisp.dhis.rules.models

fun interface RuleActionData:RuleAction {
fun data(): String
fun data(): String?
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ package org.hisp.dhis.rules.models
*/
data class RuleActionScheduleMessage(
val notification: String,
val data2: String
val data2: String?
) : RuleActionData {
override fun data(): String {
override fun data(): String? {
return data2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ package org.hisp.dhis.rules.models
*/
data class RuleActionSendMessage(
val notification: String,
val data2: String
val data2: String?
) : RuleActionData {
override fun data(): String {
override fun data(): String? {
return data2
}
}

0 comments on commit 8dafdeb

Please sign in to comment.