com.mindee.parsing.common.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mindee-api-java Show documentation
Show all versions of mindee-api-java Show documentation
Java Library to call Mindee's Off-The-Shelf and Custom APIs
The newest version!
package com.mindee.parsing.common;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
/**
* Base class for all responses from the Mindee API.
*/
@Data
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
abstract public class ApiResponse {
/**
* Information from Mindee about the api request.
*/
@JsonProperty("api_request")
ApiRequest apiRequest;
/**
* The raw server response.
* This is not formatted in any way by the library and may contain newline and tab characters.
*/
private String rawResponse;
public void setRawResponse(String contents) {
rawResponse = contents;
}
}