Example #1
0
 private static void Set(this LocationReference locationReference, CountrySubdivision countrySubdivision)
 {
     locationReference.Set(
         null,
         countrySubdivision.Clone(),
         countrySubdivision.Clone(),
         null);
 }
Example #2
0
 public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision)
 {
     locationReference.Set(
         unstructuredLocation == string.Empty ? null : unstructuredLocation,
         countrySubdivision.Clone(),
         countrySubdivision.Clone(),
         null);
 }
Example #3
0
 public void CopyTo(LocationReference location)
 {
     location.UnstructuredLocation = UnstructuredLocation;
     location.NamedLocation        = NamedLocation == null ? null : NamedLocation.Clone();
     location.CountrySubdivision   = CountrySubdivision == null ? null : CountrySubdivision.Clone();
     location.Locality             = Locality == null ? null : Locality.Clone();
 }
Example #4
0
 public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision, PostalCode postalCode)
 {
     locationReference.Set(
         unstructuredLocation,
         postalCode.Clone(),
         countrySubdivision.Clone(),
         postalCode.Locality.Clone());
 }