Skip to content

Commit

Permalink
enhancement: add GeoCoordinate.Default
Browse files Browse the repository at this point in the history
  • Loading branch information
RLittlesII committed Feb 10, 2024
1 parent b5ba3d3 commit 7f4e302
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Core/Locations/GeoCoordinate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public GeoCoordinate(double latitude, double longitude)
/// Gets the longitude of the coordinate.
/// </summary>
public double Longitude { get; }
public static GeoCoordinate Default { get; } = new GeoCoordinate(0, 0);

public static bool operator ==(GeoCoordinate? left, GeoCoordinate? right) => Equals(left, right);

Expand Down
8 changes: 4 additions & 4 deletions src/Core/Locations/MonitorState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public class MonitorState
/// </summary>
public double DistanceFilter { get; set; }

/// <summary>
/// Gets or sets the current location.
/// </summary>
public GeoLocation GeoLocation { get; set; }
/// <summary>
/// Gets or sets the current location.
/// </summary>
public GeoCoordinate Location { get; set; }

/// <summary>
/// Gets or sets a value indicating whether location services are enabled.
Expand Down

0 comments on commit 7f4e302

Please sign in to comment.