sharee.bike-App/SharedBusinessLogic/Services/Geolocation/Geolocation.cs

36 lines
712 B
C#
Raw Normal View History

2023-04-05 15:02:10 +02:00
using System;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Services.Geolocation
2023-04-05 15:02:10 +02:00
{
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};
}
}
}