コード例 #1
0
 public async Task Post(string SensorInput, double SensorValue)
 {
     var telemetryItem = new Telemetry2 { Sensor = Normalise(SensorInput), Value = SensorValue, Complete = false };
     await InsertTelemetryItem(telemetryItem);
 }
コード例 #2
0
 public async Task DeleteTelemetryItem(Telemetry2 item)
 {
     await telemetryTable.DeleteAsync(item);
 }
コード例 #3
0
 public async Task InsertTelemetryItem(Telemetry2 telemetryItem)
 {
     await telemetryTable.InsertAsync(telemetryItem);
     //await SyncAsync(); // offline sync
 }
コード例 #4
0
 public async Task UpdateTelemetryItem(Telemetry2 item)
 {
     if (item != null)
     {
         await telemetryTable.UpdateAsync(item);
     }
 }