As a model ConfidenceHandler should not know about the presenter. This change removes MainPresenter as a dependency of ConfidenceHandler and instead uses constructor injection to provide an instance of ConfidenceHandler to the presenter when it is created.
This also refactors MainPresenter to not track reverseGeoLngLat itself but instead store that information in the ConfidenceHandler model.
Finally it adds unit tests and docs to ConfidenceHandler.
As a model
ConfidenceHandler
should not know about the presenter. This change removesMainPresenter
as a dependency ofConfidenceHandler
and instead uses constructor injection to provide an instance ofConfidenceHandler
to the presenter when it is created.This also refactors
MainPresenter
to not trackreverseGeoLngLat
itself but instead store that information in theConfidenceHandler
model.Finally it adds unit tests and docs to
ConfidenceHandler
.