fi.metatavu.management.client.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of management-rest-client Show documentation
Show all versions of management-rest-client Show documentation
REST client library for Kunta API management Wordpress
package fi.metatavu.management.client;
public class ApiResponse {
public ApiResponse(int status, String message, T response) {
this.status = status;
this.response = response;
this.message = message;
}
public T getResponse() {
return response;
}
public int getStatus() {
return status;
}
public String getMessage() {
return message;
}
public boolean isOk() {
return status >= 200 && status <= 299;
}
private int status;
private String message;
private T response;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy