mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
37 lines
707 B
C#
37 lines
707 B
C#
|
using System;
|
||
|
|
||
|
namespace TINK.Services.Geolocation
|
||
|
{
|
||
|
public class Geolocation : IGeolocation
|
||
|
{
|
||
|
private Geolocation() { }
|
||
|
|
||
|
public DateTimeOffset Timestamp { get; private set; }
|
||
|
|
||
|
public double Latitude { get; private set; }
|
||
|
|
||
|
public double Longitude { get; private set; }
|
||
|
|
||
|
public double? Accuracy { get; private set; }
|
||
|
|
||
|
public class Builder
|
||
|
{
|
||
|
|
||
|
public DateTimeOffset Timestamp { get; set; }
|
||
|
|
||
|
public double Latitude { get; set; }
|
||
|
|
||
|
public double Longitude { get; set; }
|
||
|
|
||
|
public double? Accuracy { get; set; }
|
||
|
|
||
|
public Geolocation Build()
|
||
|
=> new Geolocation() {
|
||
|
Timestamp = Timestamp,
|
||
|
Latitude = Latitude,
|
||
|
Longitude = Longitude,
|
||
|
Accuracy = Accuracy};
|
||
|
}
|
||
|
}
|
||
|
}
|