Added constructor invocation.
This commit is contained in:
@@ -9,4 +9,6 @@ data class TestRightCalculationData(
|
||||
var ratioMaxRange: Double?,
|
||||
var ratioValue: Double?,
|
||||
var result: TestRightResultType
|
||||
)
|
||||
) {
|
||||
constructor() : this(null, null, null, null, null, null, null, TestRightResultType.UNDEFINED)
|
||||
}
|
||||
@@ -6,16 +6,7 @@ import com.example.hpos.data.model.TestRightResultType
|
||||
|
||||
class ResultCalculationWithAvgImpl : TestRightResultCalculation {
|
||||
|
||||
val testRightCalculationData = TestRightCalculationData(
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
TestRightResultType.UNDEFINED
|
||||
)
|
||||
private val testRightCalculationData = TestRightCalculationData()
|
||||
|
||||
override fun getResults(wavelengthToAbsorbance: ArrayList<ArrayList<Double>>): TestRightCalculationData {
|
||||
|
||||
|
||||
@@ -6,16 +6,7 @@ import com.example.hpos.data.model.TestRightResultType
|
||||
|
||||
class ResultCalculationWithMaxImpl : TestRightResultCalculation {
|
||||
|
||||
val testRightCalculationData = TestRightCalculationData(
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
TestRightResultType.UNDEFINED
|
||||
)
|
||||
val testRightCalculationData = TestRightCalculationData()
|
||||
|
||||
override fun getResults(wavelengthToAbsorbance: ArrayList<ArrayList<Double>>): TestRightCalculationData {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user