Response.java
package org.oxerr.vividseats.client.rescu.resource;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
import si.mazi.rescu.ExceptionalReturnContentException;
/**
* <a href="https://vividseats.stoplight.io/docs/broker-portal/b064ad41fe925-response">Response</a>.
*/
public class Response implements Serializable {
private static final long serialVersionUID = 2024092601L;
private Boolean success;
private String message;
public Response(
@JsonProperty("success") Boolean success,
@JsonProperty("message") String message
) {
if (!success.booleanValue()) {
throw new ExceptionalReturnContentException(message);
}
}
public Boolean getSuccess() {
return success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}