record-daemon: refactor client.rs, introducing typed structs for api types
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m17s

This commit is contained in:
2026-03-25 17:57:58 +01:00
parent b6b145215b
commit 7aa4bfbf64
3 changed files with 844 additions and 295 deletions

View File

@@ -3,6 +3,7 @@
//! This module handles communication with the League of Legends client
//! via WebSocket and REST API for game event detection and capture.
mod api_types;
mod auth;
mod client;
mod endpoints;
@@ -14,6 +15,12 @@ mod state;
mod tls;
mod websocket;
pub use api_types::{
ActivePlayerResponse, ChampionSelectPlayer, ChampionSelectResponse, EndOfGamePlayer,
EndOfGameStatsResponse, EndOfGameTeam, GameData, GameflowSessionResponse, LiveClientItem,
LiveClientPlayer, PlayerListResponse, PlayerStats, QueueData, RunePageResponse,
SummonerResponse, SummonerSpellsData, TeamPlayer, Timers,
};
pub use auth::{LockfileCredentials, LockfileWatcher};
pub use client::LqpClient;
pub use endpoints::{