com.larksuite.oapi.core.api.DefaultReqCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of larksuite-oapi Show documentation
Show all versions of larksuite-oapi Show documentation
Larksuite open platform facilitates the integration of enterprise applications and larksuite, making
collaboration and management more efficient
package com.larksuite.oapi.core.api;
import com.larksuite.oapi.core.Config;
import com.larksuite.oapi.core.api.request.Request;
import com.larksuite.oapi.core.api.response.Response;
public class DefaultReqCall extends ReqCaller {
private final Config config;
private final Request request;
public DefaultReqCall(Config config, Request request) {
this.config = config;
this.request = request;
}
@Override
public Response execute() throws Exception {
return Api.send(this.getConfig(), this.getRequest());
}
public Config getConfig() {
return config;
}
public Request getRequest() {
return request;
}
}