
fi.otavanopisto.restfulptv.client.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restful-ptv-rest-client Show documentation
Show all versions of restful-ptv-rest-client Show documentation
Restful way to use Palvelutietovaranto.
The newest version!
package fi.otavanopisto.restfulptv.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 - 2025 Weber Informatics LLC | Privacy Policy