enterprises.orbital.impl.evexmlapi.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eve-xml-api Show documentation
Show all versions of eve-xml-api Show documentation
Library to interact with EVE XML API servers
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;
}
}