The QueryNode.Node / HealthService.Node and QueryNode.Service / HealthService.Service inner classes are logically the same thing and should use common classes.
Background
We are looking to convert from using the health service endpoint to the prepared query endpoint but because the Node and Service classes are different classes makes the change more complex than it could have been. Refactoring them to use a shared model would make changes like this much easier.
The
QueryNode.Node
/HealthService.Node
andQueryNode.Service
/HealthService.Service
inner classes are logically the same thing and should use common classes.Background
We are looking to convert from using the health service endpoint to the prepared query endpoint but because the
Node
andService
classes are different classes makes the change more complex than it could have been. Refactoring them to use a shared model would make changes like this much easier.