public static PostalCode Clone(this PostalCode postalCode) { if (postalCode == null) { return(null); } return(new PostalCode { Id = postalCode.Id, Name = postalCode.Name, Locality = postalCode.Locality.Clone(), }); }
public static void Set(this LocationReference locationReference, Country country, string unstructuredLocation, PostalCode postalCode) { Set(locationReference, unstructuredLocation, GetCountryFinder(country.Id).GetCountrySubdivision(null), postalCode); }
public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision, PostalCode postalCode) { locationReference.Set( unstructuredLocation, postalCode.Clone(), countrySubdivision.Clone(), postalCode.Locality.Clone()); }
public static IList <PostalSuburb> GetPostalSuburbs(this PostalCode postalCode) { return(GetFinder().GetPostalSuburbs(postalCode)); }
public static CountrySubdivision GetCountrySubdivision(this PostalCode postalCode) { return(GetCountrySubdivision(postalCode.Locality)); }
public void Add(PostalCode postalCode, IList <PostalSuburb> postalSuburbs) { _namedLocationsById[postalCode.Id] = postalCode; _postalCodeSuburbs[postalCode.Id] = postalSuburbs; }
internal override GeographicalArea GetGeographicalArea() { return(PostalCode.GetGeographicalArea()); }
internal override Locality GetLocality() { return(PostalCode.GetLocality()); }