public IHttpActionResult HeartRate(HeartRateRequest heartRate) { Debug.WriteLine("HeartRate"); Debug.WriteLine($"{heartRate.Id}"); Debug.WriteLine($"{heartRate.Timestamp}"); Debug.WriteLine($"{heartRate.HeartRate}"); HeartRateRequests.Add(heartRate); var notifier = new Notifier(); notifier.HeartRateUpdate(heartRate.HeartRate, heartRate.Timestamp); return Content(HttpStatusCode.OK, new { }); }
public IHttpActionResult HeartRateUpdate(int heartRate, int timestamp) { var notifier = new Notifier(); notifier.HeartRateUpdate(heartRate, timestamp); return Ok(); }