rename classes

This commit is contained in:
Milos Kozak 2022-11-16 10:47:53 +01:00
parent 152fd063cb
commit c86f25824a
4 changed files with 7 additions and 9 deletions

View file

@ -21,13 +21,13 @@ import info.nightscout.database.impl.daos.TotalDailyDoseDao
import info.nightscout.database.impl.daos.UserEntryDao
import info.nightscout.database.impl.daos.VersionChangeDao
import info.nightscout.database.impl.daos.delegated.DelegatedAPSResultDao
import info.nightscout.database.impl.daos.delegated.DelegatedAPSResultLinkLinkDao
import info.nightscout.database.impl.daos.delegated.DelegatedAPSResultLinkDao
import info.nightscout.database.impl.daos.delegated.DelegatedBolusCalculatorResultDao
import info.nightscout.database.impl.daos.delegated.DelegatedBolusDao
import info.nightscout.database.impl.daos.delegated.DelegatedCarbsDao
import info.nightscout.database.impl.daos.delegated.DelegatedDeviceStatusDao
import info.nightscout.database.impl.daos.delegated.DelegatedEffectiveProfileSwitchDao
import info.nightscout.database.impl.daos.delegated.DelegatedExtendedExtendedBolusDao
import info.nightscout.database.impl.daos.delegated.DelegatedExtendedBolusDao
import info.nightscout.database.impl.daos.delegated.DelegatedFoodDao
import info.nightscout.database.impl.daos.delegated.DelegatedGlucoseValueDao
import info.nightscout.database.impl.daos.delegated.DelegatedMultiwaveBolusLinkDao
@ -48,12 +48,12 @@ internal class DelegatedAppDatabase(val changes: MutableList<DBEntry>, val datab
val therapyEventDao: TherapyEventDao = DelegatedTherapyEventDao(changes, database.therapyEventDao)
val temporaryBasalDao: TemporaryBasalDao = DelegatedTemporaryBasalDao(changes, database.temporaryBasalDao)
val bolusDao: BolusDao = DelegatedBolusDao(changes, database.bolusDao)
val extendedBolusDao: ExtendedBolusDao = DelegatedExtendedExtendedBolusDao(changes, database.extendedBolusDao)
val extendedBolusDao: ExtendedBolusDao = DelegatedExtendedBolusDao(changes, database.extendedBolusDao)
val multiwaveBolusLinkDao: MultiwaveBolusLinkDao = DelegatedMultiwaveBolusLinkDao(changes, database.multiwaveBolusLinkDao)
val totalDailyDoseDao: TotalDailyDoseDao = DelegatedTotalDailyDoseDao(changes, database.totalDailyDoseDao)
val carbsDao: CarbsDao = DelegatedCarbsDao(changes, database.carbsDao)
val temporaryTargetDao: TemporaryTargetDao = DelegatedTemporaryTargetDao(changes, database.temporaryTargetDao)
val apsResultLinkDao: APSResultLinkDao = DelegatedAPSResultLinkLinkDao(changes, database.apsResultLinkDao)
val apsResultLinkDao: APSResultLinkDao = DelegatedAPSResultLinkDao(changes, database.apsResultLinkDao)
val bolusCalculatorResultDao: BolusCalculatorResultDao = DelegatedBolusCalculatorResultDao(changes, database.bolusCalculatorResultDao)
val effectiveProfileSwitchDao: EffectiveProfileSwitchDao = DelegatedEffectiveProfileSwitchDao(changes, database.effectiveProfileSwitchDao)
val profileSwitchDao: ProfileSwitchDao = DelegatedProfileSwitchDao(changes, database.profileSwitchDao)

View file

@ -4,7 +4,7 @@ import info.nightscout.database.impl.daos.APSResultLinkDao
import info.nightscout.database.entities.APSResultLink
import info.nightscout.database.entities.interfaces.DBEntry
internal class DelegatedAPSResultLinkLinkDao(changes: MutableList<DBEntry>, private val dao: APSResultLinkDao) : DelegatedDao(changes), APSResultLinkDao by dao {
internal class DelegatedAPSResultLinkDao(changes: MutableList<DBEntry>, private val dao: APSResultLinkDao) : DelegatedDao(changes), APSResultLinkDao by dao {
override fun insertNewEntry(entry: APSResultLink): Long {
changes.add(entry)

View file

@ -4,7 +4,7 @@ import info.nightscout.database.impl.daos.ExtendedBolusDao
import info.nightscout.database.entities.ExtendedBolus
import info.nightscout.database.entities.interfaces.DBEntry
internal class DelegatedExtendedExtendedBolusDao(changes: MutableList<DBEntry>, private val dao: ExtendedBolusDao) : DelegatedDao(changes), ExtendedBolusDao by dao {
internal class DelegatedExtendedBolusDao(changes: MutableList<DBEntry>, private val dao: ExtendedBolusDao) : DelegatedDao(changes), ExtendedBolusDao by dao {
override fun insertNewEntry(entry: ExtendedBolus): Long {
changes.add(entry)

View file

@ -3,9 +3,7 @@ package info.nightscout.database.impl.transactions
import info.nightscout.database.entities.TemporaryBasal
import info.nightscout.database.entities.embedments.InterfaceIDs
class InvalidateTemporaryBasalTransactionWithPumpId(val pumpId: Long, val pumpType: InterfaceIDs.PumpType, val
pumpSerial:
String) :
class InvalidateTemporaryBasalTransactionWithPumpId(val pumpId: Long, val pumpType: InterfaceIDs.PumpType, val pumpSerial: String) :
Transaction<InvalidateTemporaryBasalTransactionWithPumpId.TransactionResult>() {
override fun run(): TransactionResult {