All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wirefreethought.geodb.client.model.CountryDetails Maven / Gradle / Ivy

/*
 * GeoDB Cities API
 * The GeoDB API focuses on getting global city and region data. Easily obtain country, region, and city data for use in your apps!  
  • Filter cities by name prefix, country, location, time-zone, and even minimum population.
  • Sort cities by name, country code, elevation, and population - or any combination of these.
  • Get all country regions.
  • Get all cities in a given region.
  • Display results in multiple languages.
  • RESTful API adheres to industry best-practices, including HATEOAS-style links to facilitate paging results.
  • Backed by cloud-based load-balanced infrastructure for resiliency and performance!
  • Data is periodically refreshed from GeoNames and WikiData.

Notes:

  • Since the database is periodically updated, this may very rarely result in certain cities being marked deleted (e.g., duplicates removed). By default, endpoints returning city data will exclude cities marked deleted. However, in the unlikely event that this occurs while your app is paging through a set of affected results - and you care about the paged results suddenly changing underneath - specify includeDeleted=SINCE_YESTERDAY (or SINCE_LAST_WEEK if you're really paranoid!).

Useful Resources

* * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.wirefreethought.geodb.client.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Full country details */ @ApiModel(description = "Full country details") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-02-12T13:16:57.813-08:00") public class CountryDetails { @SerializedName("code") private String code = null; @SerializedName("callingCode") private String callingCode = null; @SerializedName("currencyCodes") private List currencyCodes = null; @SerializedName("flagImageUri") private String flagImageUri = null; @SerializedName("name") private String name = null; @SerializedName("numRegions") private Integer numRegions = null; @SerializedName("wikiDataId") private String wikiDataId = null; public CountryDetails code(String code) { this.code = code; return this; } /** * The ISO-3166 country code * @return code **/ @ApiModelProperty(value = "The ISO-3166 country code") public String getCode() { return code; } public void setCode(String code) { this.code = code; } public CountryDetails callingCode(String callingCode) { this.callingCode = callingCode; return this; } /** * The country dialing prefix * @return callingCode **/ @ApiModelProperty(value = "The country dialing prefix") public String getCallingCode() { return callingCode; } public void setCallingCode(String callingCode) { this.callingCode = callingCode; } public CountryDetails currencyCodes(List currencyCodes) { this.currencyCodes = currencyCodes; return this; } public CountryDetails addCurrencyCodesItem(String currencyCodesItem) { if (this.currencyCodes == null) { this.currencyCodes = new ArrayList<>(); } this.currencyCodes.add(currencyCodesItem); return this; } /** * A list of supported ISO-4217 currency codes * @return currencyCodes **/ @ApiModelProperty(value = "A list of supported ISO-4217 currency codes") public List getCurrencyCodes() { return currencyCodes; } public void setCurrencyCodes(List currencyCodes) { this.currencyCodes = currencyCodes; } public CountryDetails flagImageUri(String flagImageUri) { this.flagImageUri = flagImageUri; return this; } /** * The country flag image * @return flagImageUri **/ @ApiModelProperty(value = "The country flag image") public String getFlagImageUri() { return flagImageUri; } public void setFlagImageUri(String flagImageUri) { this.flagImageUri = flagImageUri; } public CountryDetails name(String name) { this.name = name; return this; } /** * The country name (varies by languageCode) * @return name **/ @ApiModelProperty(value = "The country name (varies by languageCode)") public String getName() { return name; } public void setName(String name) { this.name = name; } public CountryDetails numRegions(Integer numRegions) { this.numRegions = numRegions; return this; } /** * The number of regions in this country * @return numRegions **/ @ApiModelProperty(value = "The number of regions in this country") public Integer getNumRegions() { return numRegions; } public void setNumRegions(Integer numRegions) { this.numRegions = numRegions; } public CountryDetails wikiDataId(String wikiDataId) { this.wikiDataId = wikiDataId; return this; } /** * The country WikiData id * @return wikiDataId **/ @ApiModelProperty(value = "The country WikiData id") public String getWikiDataId() { return wikiDataId; } public void setWikiDataId(String wikiDataId) { this.wikiDataId = wikiDataId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CountryDetails countryDetails = (CountryDetails) o; return Objects.equals(this.code, countryDetails.code) && Objects.equals(this.callingCode, countryDetails.callingCode) && Objects.equals(this.currencyCodes, countryDetails.currencyCodes) && Objects.equals(this.flagImageUri, countryDetails.flagImageUri) && Objects.equals(this.name, countryDetails.name) && Objects.equals(this.numRegions, countryDetails.numRegions) && Objects.equals(this.wikiDataId, countryDetails.wikiDataId); } @Override public int hashCode() { return Objects.hash(code, callingCode, currencyCodes, flagImageUri, name, numRegions, wikiDataId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CountryDetails {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" callingCode: ").append(toIndentedString(callingCode)).append("\n"); sb.append(" currencyCodes: ").append(toIndentedString(currencyCodes)).append("\n"); sb.append(" flagImageUri: ").append(toIndentedString(flagImageUri)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" numRegions: ").append(toIndentedString(numRegions)).append("\n"); sb.append(" wikiDataId: ").append(toIndentedString(wikiDataId)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy