| package io.prediction; |
| |
| /** |
| * API Response class for wrapping responses. |
| * |
| * @author The PredictionIO Team (<a href="http://prediction.io">http://prediction.io</a>) |
| * @version 0.8.3 |
| * @since 0.2 |
| */ |
| |
| public class APIResponse { |
| private int status; |
| private String message; |
| |
| public APIResponse(int status, String message) { |
| this.status = status; |
| this.message = message; |
| } |
| |
| public int getStatus() { |
| return this.status; |
| } |
| |
| public void setStatus(int status) { |
| this.status = status; |
| } |
| |
| public String getMessage() { |
| return this.message; |
| } |
| |
| public void setMessage(String message) { |
| this.message = message; |
| } |
| } |