View Source F1Bot.F1Session.LiveTimingHandlers.TimingData (f1_bot v0.7.0)
Handler for lap times and sector times received from live timing API. The handler parses drivers' information and passes it on to the F1 session instance.
Link to this section Summary
Link to this section Types
@type sector_times() :: %{ optional(1) => Timex.Duration.t(), optional(2) => Timex.Duration.t(), optional(3) => Timex.Duration.t() }
@type t() :: %F1Bot.F1Session.LiveTimingHandlers.TimingData{ driver_number: pos_integer(), lap_number: (pos_integer() | nil) | nil, lap_time: (Timex.Duration.t() | nil) | nil, sector_times: (sector_times() | nil) | nil, timestamp: DateTime.t() }