com.banxa.client.BanxaClientResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The Java SDK for integration with Banxa's API
The newest version!
package com.banxa.client;
public class BanxaClientResponse {
private final int code;
private final String body;
public BanxaClientResponse(int code, String body) {
this.code = code;
this.body = body;
}
public int getCode() {
return code;
}
public boolean isSuccessful() {
return this.code == 200;
}
public String getBody() {
return body;
}
}