1. Network Layer: Handles all network calls then report back to logic layer via callback
2. Logic Layer: Process data, save what needs to be saved and sends the rest to UI layer via callback
3. UI Layer: Reflect received data.
I am currently using callbacks to communicate between three layers with a parameter to state who was the sender (which layer and which function)
Is there a better way for communication between different layers?
Thanks in advance :)