コード例 #1
0
        public void PostFetalData(BedId id, Data d)
        {
            System.Diagnostics.Trace.WriteLine($"Posting fetal data for {id}.");

            Task.Delay(2000).Wait();

            _lastDataPosted = d;
        }
コード例 #2
0
        public object FetchAnalytics(BedId id)
        {
            System.Diagnostics.Trace.WriteLine($"Fetching analytics for {id}.");

            Task.Delay(2000).Wait();

            return(_lastDataPosted?.ToString());
        }
コード例 #3
0
        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);
        }