dotnet-geo-management/Svrnty.GeoManagement.Abstractions/Models/Address.cs

18 lines
627 B
C#

using Svrnty.GeoManagement.Abstractions.Abstractions;
namespace Svrnty.GeoManagement.Abstractions.Models;
public record GeoPoint(decimal Latitude, decimal Longitude);
public record Address(bool Normalized = false) : IAddress
{
public required string Line1 { get; set; }
public string? Line2 { get; set; }
public required string City { get; set; }
public required string Subdivision { get; set; }
public required string PostalCode { get; set; }
public required string Country { get; set; }
public GeoPoint? Location { get; set; }
public string? Note { get; set; }
public bool IsNormalized() => Normalized;
}