com.braintreegateway.DisputePager Maven / Gradle / Ivy
package com.braintreegateway;
public class DisputePager implements SimplePager {
private DisputeGateway gateway;
private DisputeSearchRequest query;
public DisputePager(DisputeGateway gateway, DisputeSearchRequest query) {
this.gateway = gateway;
this.query = query;
}
public PaginatedResult getPage(int page) {
return gateway.fetchDisputes(query, page);
}
}