
com.banxa.model.response.BanxaResponse 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
package com.banxa.model.response;
public class BanxaResponse {
private final boolean success;
private final T response;
private final Pagination pagination;
public BanxaResponse(boolean success, T response, Pagination pagination) {
this.success = success;
this.response = response;
this.pagination = pagination;
}
public boolean isSuccess() {
return success;
}
public T getResponse() {
return response;
}
public Pagination getPagination() {
return pagination;
}
/**
* This is the last page either if there is no pagination for this response or
* the last page has been reached for this paginated response
* @return true | false
*/
public boolean isLastPage() {
return pagination == null || pagination.isLastPage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy