remove comments
This commit is contained in:
parent
2df1bb07ab
commit
d531adede5
|
@ -6,14 +6,11 @@ import com.zaneschepke.wireguardautotunnel.data.domain.TunnelConfig
|
||||||
data class WatcherState(
|
data class WatcherState(
|
||||||
val isWifiConnected: Boolean = false,
|
val isWifiConnected: Boolean = false,
|
||||||
val config: TunnelConfig? = null,
|
val config: TunnelConfig? = null,
|
||||||
//val vpnStatus: TunnelState = TunnelState.DOWN,
|
|
||||||
val isEthernetConnected: Boolean = false,
|
val isEthernetConnected: Boolean = false,
|
||||||
val isMobileDataConnected: Boolean = false,
|
val isMobileDataConnected: Boolean = false,
|
||||||
val currentNetworkSSID: String = "",
|
val currentNetworkSSID: String = "",
|
||||||
val settings: Settings = Settings()
|
val settings: Settings = Settings()
|
||||||
) {
|
) {
|
||||||
|
|
||||||
//private fun isVpnConnected() = vpnStatus == TunnelState.UP
|
|
||||||
fun isEthernetConditionMet(): Boolean {
|
fun isEthernetConditionMet(): Boolean {
|
||||||
return (isEthernetConnected &&
|
return (isEthernetConnected &&
|
||||||
settings.isTunnelOnEthernetEnabled)
|
settings.isTunnelOnEthernetEnabled)
|
||||||
|
|
Loading…
Reference in New Issue