iOS election monitoring app - a mobile app through which commissioned observers can easily report back to their respective NGOs throughout the election day
Right now the API calls are duplicated across a bunch of classes.
Ideally we would have a central entry point (an API manager) that will serve as the interface between the ViewController/ViewModel and the server.
I suggest we have callbacks instead of delegates, or even better, promises (if the time permits).
The API manager and related classes/methods should only handle network calls and authentication/authorization.
All requests & responses should use Codable structs for a more robust API layer.
Right now the API calls are duplicated across a bunch of classes. Ideally we would have a central entry point (an API manager) that will serve as the interface between the ViewController/ViewModel and the server.