public void PostFetalData(BedId id, Data d) { System.Diagnostics.Trace.WriteLine($"Posting fetal data for {id}."); Task.Delay(2000).Wait(); _lastDataPosted = d; }
public object FetchAnalytics(BedId id) { System.Diagnostics.Trace.WriteLine($"Fetching analytics for {id}."); Task.Delay(2000).Wait(); return(_lastDataPosted?.ToString()); }
public SessionIdentifier Initialize(int age) { var id = new SessionIdentifier(CalculateNextId()); TheData[id] = new BedId(TheData.Values.Any() ? TheData.Values.Max(v => v.Id) + 10 : 10); return(id); }