refactor(config): move business logic to ViewModel

This commit is contained in:
andrekir 2023-09-16 09:51:16 -03:00 committed by Andre K
parent e8b0f1584b
commit 7869243290
8 changed files with 354 additions and 323 deletions

View file

@ -51,14 +51,4 @@ data class MeshLog(@PrimaryKey val uuid: String,
return null
} ?: nodeInfo?.position
}
val routeDiscovery: MeshProtos.RouteDiscovery?
get() {
return meshPacket?.run {
if (hasDecoded() && decoded.portnumValue == Portnums.PortNum.TRACEROUTE_APP_VALUE) {
return MeshProtos.RouteDiscovery.parseFrom(decoded.payload)
}
return null
}
}
}