This project is a comprehensive tool that allows users to track train data, explore cities, and get weather updates in an interactive and visually engaging way.
1
stars
0
forks
source link
Move from unspecified topic+payload to pre-defined events+payloads #15
Adds BackendComponent.java, which all backend components that wish to use events need to extend (ExampleBackendComponent extends BackendComponent). This helps them to process the events.
Introduces EventPayload.java interface, which all Payloads must implement. This also allows backend and frontend components to get the payload values easily.
Adds Events.java, where all event types (enum) and pre-defined events go. This holds all Payload information in a centralized space.
This PR would close issues #11 and #12