mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-12 13:36:26 +01:00
12 lines
342 B
C#
12 lines
342 B
C#
|
|
|||
|
namespace TINK.Model
|
|||
|
{
|
|||
|
public static class PositionFactory
|
|||
|
{
|
|||
|
public static IPosition Create(double latitude = double.NaN, double longitude = double.NaN)
|
|||
|
=> Position.GetIsValid(longitude, latitude)
|
|||
|
? new Position(latitude, longitude) as IPosition
|
|||
|
: new NullPostion();
|
|||
|
}
|
|||
|
}
|