com.youcruit.billogram.client.ReportClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of billogram-v2-api-java-lib Show documentation
Show all versions of billogram-v2-api-java-lib Show documentation
Library for connecting to the Billogram v2 API
package com.youcruit.billogram.client;
import java.io.IOException;
import com.youcruit.billogram.client.http.HttpClient;
import com.youcruit.billogram.objects.request.Search;
import com.youcruit.billogram.objects.request.report.ReportFilterField;
import com.youcruit.billogram.objects.request.report.ReportOrderField;
import com.youcruit.billogram.objects.response.report.Report;
import com.youcruit.billogram.objects.response.report.ReportResponse;
import com.youcruit.billogram.objects.response.report.ReportSearchResponse;
public class ReportClient extends AbstractRestClient {
public ReportClient(HttpClient httpClient) {
super(httpClient, "report", ReportSearchResponse.class, ReportResponse.class);
}
@Override
public String getId(Report report) {
return report.getFilename();
}
@Override
public ReportResponse get(String filename) throws IOException {
return super.get(filename);
}
@Override
public void getAsync(String filename, BillogramCallback callback) {
super.getAsync(filename, callback);
}
@Override
public ReportSearchResponse search(Search search) throws IOException {
return super.search(search);
}
@Override
public void searchAsync(Search search, BillogramCallback callback) {
super.searchAsync(search, callback);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy