Started adding ability to copy postal codes between installations
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Activizr.Basic.Types
|
||||
{
|
||||
[Serializable]
|
||||
public class BasicPostalCode
|
||||
{
|
||||
public BasicPostalCode(string postalCode, string cityName, string countryCode)
|
||||
{
|
||||
this.PostalCode = postalCode.Replace(" ", "");
|
||||
this.CityName = cityName;
|
||||
this.CountryCode = countryCode;
|
||||
}
|
||||
|
||||
public BasicPostalCode(BasicPostalCode original)
|
||||
: this(original.PostalCode, original.CityName, original.CountryCode)
|
||||
{
|
||||
}
|
||||
|
||||
public string PostalCode { get; private set; } // any whitespace removed
|
||||
public string CityName { get; protected set; }
|
||||
public string CountryCode { get; protected set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user