SmsCommunicatorInterface rename
This commit is contained in:
parent
24164eee98
commit
4e604124c5
|
@ -87,7 +87,7 @@ open class AppModule {
|
|||
@Binds fun bindIconsProviderInterface(iconsProvider: IconsProviderImplementation): IconsProvider
|
||||
@Binds fun bindLoopInterface(loopPlugin: LoopPlugin): LoopInterface
|
||||
@Binds fun bindIobCobCalculatorInterface(iobCobCalculatorPlugin: IobCobCalculatorPlugin): IobCobCalculator
|
||||
@Binds fun bindSmsCommunicatorInterface(smsCommunicatorPlugin: SmsCommunicatorPlugin): SmsCommunicatorInterface
|
||||
@Binds fun bindSmsCommunicatorInterface(smsCommunicatorPlugin: SmsCommunicatorPlugin): SmsCommunicator
|
||||
@Binds fun bindUploadQueueAdminInterfaceToUploadQueue(uploadQueueAdminInterface: UploadQueueAdminInterface) : UploadQueueInterface
|
||||
@Binds fun bindDataSyncSelector(dataSyncSelectorImplementation: DataSyncSelectorImplementation): DataSyncSelector
|
||||
@Binds fun bindPumpSync(pumpSyncImplementation: PumpSyncImplementation): PumpSync
|
||||
|
|
|
@ -90,7 +90,7 @@ class SmsCommunicatorPlugin @Inject constructor(
|
|||
.preferencesId(R.xml.pref_smscommunicator)
|
||||
.description(R.string.description_sms_communicator),
|
||||
aapsLogger, resourceHelper, injector
|
||||
), SmsCommunicatorInterface {
|
||||
), SmsCommunicator {
|
||||
|
||||
private val disposable = CompositeDisposable()
|
||||
var allowedNumbers: MutableList<String> = ArrayList()
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.widget.LinearLayout
|
|||
import dagger.android.HasAndroidInjector
|
||||
import info.nightscout.androidaps.automation.R
|
||||
import info.nightscout.androidaps.data.PumpEnactResult
|
||||
import info.nightscout.androidaps.interfaces.SmsCommunicatorInterface
|
||||
import info.nightscout.androidaps.interfaces.SmsCommunicator
|
||||
import info.nightscout.androidaps.plugins.general.automation.elements.InputString
|
||||
import info.nightscout.androidaps.plugins.general.automation.elements.LabelWithElement
|
||||
import info.nightscout.androidaps.plugins.general.automation.elements.LayoutBuilder
|
||||
|
@ -17,7 +17,7 @@ import javax.inject.Inject
|
|||
class ActionSendSMS(injector: HasAndroidInjector) : Action(injector) {
|
||||
|
||||
@Inject lateinit var resourceHelper: ResourceHelper
|
||||
@Inject lateinit var smsCommunicatorPlugin: SmsCommunicatorInterface
|
||||
@Inject lateinit var smsCommunicatorPlugin: SmsCommunicator
|
||||
|
||||
var text = InputString()
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ open class ActionsTestBase : TestBaseWithProfile() {
|
|||
@Mock lateinit var configBuilder: ConfigBuilder
|
||||
@Mock lateinit var activePlugin: ActivePlugin
|
||||
@Mock lateinit var profilePlugin: ProfileInterface
|
||||
@Mock lateinit var smsCommunicatorPlugin: SmsCommunicatorInterface
|
||||
@Mock lateinit var smsCommunicatorPlugin: SmsCommunicator
|
||||
@Mock lateinit var loopPlugin: TestLoopPlugin
|
||||
@Mock lateinit var uel: UserEntryLogger
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package info.nightscout.androidaps.interfaces
|
||||
|
||||
interface SmsCommunicatorInterface {
|
||||
interface SmsCommunicator {
|
||||
|
||||
fun sendNotificationToAllNumbers(text: String): Boolean
|
||||
}
|
Loading…
Reference in a new issue