parent
660ff0132d
commit
1a02f43343
@ -1,9 +1,13 @@ |
|||||||
package io.legado.app.model.analyzeRule |
package io.legado.app.model.analyzeRule |
||||||
|
|
||||||
interface RuleData { |
class RuleData : RuleDataInterface { |
||||||
|
|
||||||
val variableMap: HashMap<String, String> |
override val variableMap by lazy { |
||||||
|
hashMapOf<String, String>() |
||||||
|
} |
||||||
|
|
||||||
fun putVariable(key: String, value: String) |
override fun putVariable(key: String, value: String) { |
||||||
|
variableMap[key] = value |
||||||
|
} |
||||||
|
|
||||||
} |
} |
@ -0,0 +1,9 @@ |
|||||||
|
package io.legado.app.model.analyzeRule |
||||||
|
|
||||||
|
interface RuleDataInterface { |
||||||
|
|
||||||
|
val variableMap: HashMap<String, String> |
||||||
|
|
||||||
|
fun putVariable(key: String, value: String) |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue