public async Task SaveMeasurementAsync(LocationMeasurement measurement)
 {
     if (measurement.Id == null)
     {
         await _locationMeasurementTable.InsertAsync(measurement);
     }
     else
     {
         await _locationMeasurementTable.UpdateAsync(measurement);
     }
 }
Пример #2
0
 /// Copy constructor: Deep copy
 public LocationMeasurement(LocationMeasurement toCopy)
 {
     TrackId            = toCopy.TrackId;
     TrackName          = toCopy.TrackName;
     UserId             = toCopy.UserId;
     UserName           = toCopy.UserName;
     Provider           = toCopy.Provider;
     IsFromMockProvider = toCopy.IsFromMockProvider;
     Latitude           = toCopy.Latitude;
     Longitude          = toCopy.Longitude;
     DateTimeStamp      = toCopy.DateTimeStamp;
     Elevation          = toCopy.Elevation;
     BuildingFloor      = toCopy.BuildingFloor;
     Speed              = toCopy.Speed;
     Bearing            = toCopy.Bearing;
     HorizontalAccuracy = toCopy.HorizontalAccuracy;
     VerticalAccuracy   = toCopy.VerticalAccuracy;
 }