Started adding ability to copy postal codes between installations

This commit is contained in:
Rick Falkvinge
2012-11-04 10:15:50 +00:00
parent 739a91fef7
commit 534e3173e1
4 changed files with 1009 additions and 0 deletions
+26
View File
@@ -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; }
}
}