com.wirefreethought.geodb.client.model.Metadata Maven / Gradle / Ivy
/*
* GeoDB 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 (currently, English, French, German, Russian, and Spanish).
- 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:
- 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.model;
import java.util.Objects;
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;
/**
* Metadata
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-16T19:24:37.995-07:00")
public class Metadata {
@SerializedName("currentOffset")
private Long currentOffset = null;
@SerializedName("totalCount")
private Long totalCount = null;
public Metadata currentOffset(Long currentOffset) {
this.currentOffset = currentOffset;
return this;
}
/**
* The zero-ary offset into the results (0 is the first result)
* @return currentOffset
**/
@ApiModelProperty(value = "The zero-ary offset into the results (0 is the first result)")
public Long getCurrentOffset() {
return currentOffset;
}
public void setCurrentOffset(Long currentOffset) {
this.currentOffset = currentOffset;
}
public Metadata totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* The total number of results across pages
* @return totalCount
**/
@ApiModelProperty(value = "The total number of results across pages")
public Long getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
this.totalCount = totalCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Metadata metadata = (Metadata) o;
return Objects.equals(this.currentOffset, metadata.currentOffset) &&
Objects.equals(this.totalCount, metadata.totalCount);
}
@Override
public int hashCode() {
return Objects.hash(currentOffset, totalCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Metadata {\n");
sb.append(" currentOffset: ").append(toIndentedString(currentOffset)).append("\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).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 ");
}
}