package com.demotest.app.data.remote

import com.demotest.app.model.ExchangeTestRequest
import com.demotest.app.network.ApiService
import com.demotest.app.network.BaseDataSource
import org.koin.dsl.module


val remoteDataSourceModule = module {
    factory { RemoteDataSource(get()) }
}

class RemoteDataSource(
    private val apiService: ApiService
) : BaseDataSource() {

    suspend fun testConnection(request: ExchangeTestRequest) = getResult {
        apiService.testConnection(request)
    }

}