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

enterprises.orbital.impl.evexmlapi.ApiResponse Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package enterprises.orbital.impl.evexmlapi;

import java.util.Date;

/**
 * Class encapsulating a standard API response.
 */
public class ApiResponse {
  private int      version;
  private Date     currentTime;
  private Date     cachedUntil;
  private ApiError error;

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public Date getCurrentTime() {
    return currentTime;
  }

  public void setCurrentTime(Date currentTime) {
    this.currentTime = currentTime;
  }

  public Date getCachedUntil() {
    return cachedUntil;
  }

  public void setCachedUntil(Date cachedUntil) {
    this.cachedUntil = cachedUntil;
  }

  public boolean hasError() {
    return error != null;
  }

  public ApiError getError() {
    return error;
  }

  public void setError(ApiError error) {
    this.error = error;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy