예제 #1
0
 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 { });
 }
예제 #2
0
 public IHttpActionResult HeartRateUpdate(int heartRate, int timestamp)
 {
     var notifier = new Notifier();
     notifier.HeartRateUpdate(heartRate, timestamp);
     return Ok();
 }