private void AddEntry(LapTimeEntry entry) { InitializeCm(); if (_cmStorage.IsBetter(entry)) { _cmStorage.Set(entry); UpdateAsync().Forget(); } }
private string Pack(LapTimeEntry entry) { return entry.EntryDate.ToUnixTimestamp().ToInvariantString() + ";" + ((long)entry.LapTime.TotalMilliseconds).ToInvariantString(); }
public bool Same(LapTimeEntry entry) { return(string.Equals(entry.CarId, CarId, StringComparison.OrdinalIgnoreCase) && string.Equals(entry.TrackAcId, TrackAcId, StringComparison.OrdinalIgnoreCase)); }
public bool Same(LapTimeEntry entry) { return string.Equals(entry.CarId, CarId, StringComparison.OrdinalIgnoreCase) && string.Equals(entry.TrackAcId, TrackAcId, StringComparison.OrdinalIgnoreCase); }
public LapTimeWrapped(LapTimeEntry entry) { Entry = entry; Prepare().Forget(); }