Esempio n. 1
0
 public static void MapFromLocation(this StoredLocation storedLocation, Location location)
 {
     storedLocation.Accuracy  = location.Accuracy;
     storedLocation.Lat       = location.Latitude;
     storedLocation.Lng       = location.Longitude;
     storedLocation.Timestamp = location.Timestamp.UtcDateTime;
 }
Esempio n. 2
0
 public static Location MapToLocation(this StoredLocation storedLocation)
 {
     return(new Location()
     {
         Latitude = storedLocation.Lat,
         Longitude = storedLocation.Lng,
         Timestamp = new DateTimeOffset(storedLocation.Timestamp, TimeSpan.Zero),
         Accuracy = storedLocation.Accuracy,
     });
 }