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

fi.metatavu.management.client.ApiResponse Maven / Gradle / Ivy

There is a newer version: 0.0.31
Show newest version
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