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

fi.otavanopisto.restfulptv.client.ApiResponse Maven / Gradle / Ivy

There is a newer version: 1.2.7
Show 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 - 2024 Weber Informatics LLC | Privacy Policy