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

com.wirefreethought.geodb.client.vo.WftErrorCode Maven / Gradle / Ivy

/*
 * Geo DB API
 * This developer-centric REST 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.
  • Get all country regions.
  • Get all cities in a given region.
  • Developer-friendly RESTful API adheres to industry best-practices, including HATEOS-style links to facilitate paging results.
  • Backed by Amazon AWS load-balanced infrastructure for resiliency and performance!
  • Data is periodically refreshed from GeoNames.org.

Notes:

  • All endpoints implicitly support JSONP-style invocation via an optional callback param.
  • 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.vo; import java.util.Objects; import com.google.gson.annotations.SerializedName; import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; /** * Gets or Sets WftErrorCode */ @JsonAdapter(WftErrorCode.Adapter.class) public enum WftErrorCode { ACCESS_DENIED("ACCESS_DENIED"), ENTITY_NOT_FOUND("ENTITY_NOT_FOUND"), PARAM_INVALID("PARAM_INVALID"), PARAMS_MUTUALLY_EXCLUSIVE("PARAMS_MUTUALLY_EXCLUSIVE"); private String value; WftErrorCode(String value) { this.value = value; } public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } public static WftErrorCode fromValue(String text) { for (WftErrorCode b : WftErrorCode.values()) { if (String.valueOf(b.value).equals(text)) { return b; } } return null; } public static class Adapter extends TypeAdapter { @Override public void write(final JsonWriter jsonWriter, final WftErrorCode enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public WftErrorCode read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); return WftErrorCode.fromValue(String.valueOf(value)); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy