package llc.arma.ble.app.ui.mapper

import llc.arma.ble.app.ui.model.BleView
import llc.arma.ble.domain.model.Ble
import javax.inject.Inject

class TxMapper @Inject constructor() : Mapper<Ble.BleState.TX, BleView.BleState.TX> {

    override fun map(input: Ble.BleState.TX): BleView.BleState.TX {
        return when(input){
            Ble.BleState.TX.MINUS_40 -> BleView.BleState.TX.MINUS_40
            Ble.BleState.TX.MINUS_20 -> BleView.BleState.TX.MINUS_20
            Ble.BleState.TX.MINUS_16 -> BleView.BleState.TX.MINUS_16
            Ble.BleState.TX.MINUS_12 -> BleView.BleState.TX.MINUS_12
            Ble.BleState.TX.MINUS_8 -> BleView.BleState.TX.MINUS_8
            Ble.BleState.TX.MINUS_4 -> BleView.BleState.TX.MINUS_4
            Ble.BleState.TX.ZERO -> BleView.BleState.TX.ZERO
            Ble.BleState.TX.PLUS_3 -> BleView.BleState.TX.PLUS_3
            Ble.BleState.TX.PLUS_4 -> BleView.BleState.TX.PLUS_4
        }
    }

}