All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sigopt.net.PaginatedAPIMethodCaller Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package com.sigopt.net;

import com.sigopt.model.APIObject;
import com.sigopt.model.APIResource;
import com.sigopt.model.Pagination;

public class PaginatedAPIMethodCaller extends APIMethodCaller> {
    Class subklass;

    public PaginatedAPIMethodCaller(String method, String path, Class klass) {
        super(method, path);
        this.subklass = subklass;
    }

    @Override
    protected Pagination processBody(String body) {
        return APIResource.constructPaginationFromJson(apiMethod.response.body, this.subklass);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy