Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractCountryResponse"/> class.
 /// </summary>
 public AbstractCountryResponse()
 {
     Continent          = new Continent();
     Country            = new Country();
     MaxMind            = new Model.MaxMind();
     RegisteredCountry  = new Country();
     RepresentedCountry = new RepresentedCountry();
     Traits             = new Traits();
 }
 public CountryResponse(
     Continent continent = null,
     Country country     = null,
     [Parameter("maxmind")] Model.MaxMind maxMind = null,
     Country registeredCountry = null,
     [Parameter("represented_country")] RepresentedCountry representedCountry = null,
     [Parameter("traits", true)] Traits traits = null
     ) : base(continent, country, maxMind, registeredCountry, representedCountry, traits)
 {
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="AbstractCountryResponse" /> class.
 /// </summary>
 protected AbstractCountryResponse(Continent continent       = null, Country country = null,
                                   Model.MaxMind maxMind     = null,
                                   Country registeredCountry = null, RepresentedCountry representedCountry = null, Traits traits = null)
 {
     Continent          = continent ?? new Continent();
     Country            = country ?? new Country();
     MaxMind            = maxMind ?? new Model.MaxMind();
     RegisteredCountry  = registeredCountry ?? new Country();
     RepresentedCountry = representedCountry ?? new RepresentedCountry();
     Traits             = traits ?? new Traits();
 }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public CityIspOrgResponse(
     City city                             = null,
     Continent continent                   = null,
     Country country                       = null, Location location = null,
     Model.MaxMind maxMind                 = null,
     Postal postal                         = null,
     Country registeredCountry             = null,
     RepresentedCountry representedCountry = null,
     List <Subdivision> subdivisions       = null,
     Traits traits                         = null)
     : base(
         city, continent, country, location, maxMind, postal, registeredCountry, representedCountry, subdivisions, traits)
 {
 }
Beispiel #5
0
 public CityResponse(
     City city           = null,
     Continent continent = null,
     Country country     = null,
     Location location   = null,
     [Parameter("maxmind")] Model.MaxMind maxMind = null,
     Postal postal = null,
     [Parameter("registered_country")] Country registeredCountry = null,
     [Parameter("represented_country")] RepresentedCountry representedCountry = null,
     IEnumerable <Subdivision> subdivisions    = null,
     [Parameter("traits", true)] Traits traits = null)
     : base(
         city, continent, country, location, maxMind, postal, registeredCountry, representedCountry, subdivisions,
         traits)
 {
 }
Beispiel #6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AbstractCityResponse" /> class.
 /// </summary>
 protected AbstractCityResponse(
     City city                              = null,
     Continent continent                    = null,
     Country country                        = null,
     Location location                      = null,
     Model.MaxMind maxMind                  = null,
     Postal postal                          = null,
     Country registeredCountry              = null,
     RepresentedCountry representedCountry  = null,
     IEnumerable <Subdivision> subdivisions = null,
     Traits traits                          = null)
     : base(continent, country, maxMind, registeredCountry, representedCountry, traits)
 {
     City         = city ?? new City();
     Location     = location ?? new Location();
     Postal       = postal ?? new Postal();
     Subdivisions = subdivisions != null ? new List <Subdivision>(subdivisions) : new List <Subdivision>();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public CountryResponse(Continent continent       = null, Country country = null, Model.MaxMind maxMind = null,
                        Country registeredCountry = null, RepresentedCountry representedCountry = null, Traits traits = null)
     : base(continent, country, maxMind, registeredCountry, representedCountry, traits)
 {
 }