feat(api): Add /api/gui/state endpoint and live_gui integration tests
This commit is contained in:
@@ -84,6 +84,11 @@ class ApiHookClient:
|
||||
"""Retrieves current MMA status (track, tickets, tier, etc.)"""
|
||||
return self._make_request('GET', '/api/gui/mma_status')
|
||||
|
||||
def get_gui_state(self) -> dict | None:
|
||||
"""Retrieves the current GUI state via /api/gui/state."""
|
||||
resp = self._make_request("GET", "/api/gui/state")
|
||||
return resp if resp else None
|
||||
|
||||
def push_event(self, event_type: str, payload: dict[str, Any]) -> dict[str, Any] | None:
|
||||
"""Pushes an event to the GUI's AsyncEventQueue via the /api/gui endpoint."""
|
||||
return self.post_gui({
|
||||
|
||||
Reference in New Issue
Block a user