Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.regula.facesdk.webclient.gen.model.DetectResponse;
import com.regula.facesdk.webclient.gen.model.MatchRequest;
import com.regula.facesdk.webclient.gen.model.MatchResponse;
import com.regula.facesdk.webclient.gen.model.MatchAndSearchRequest;
import com.regula.facesdk.webclient.gen.model.MatchAndSearchResponse;

public class MatchApi extends com.regula.facesdk.webclient.gen.api.MatchApi {
public MatchApi() {
Expand Down Expand Up @@ -34,4 +36,12 @@ public DetectResponse detect(DetectRequest detectRequest) throws ApiException {
ApiResponse<DetectResponse> localVarResp = detectWithHttpInfo(detectRequest, "");
return localVarResp.getData();
}

public MatchAndSearchResponse matchAndSearch(MatchAndSearchRequest matchAndSearchRequest, String xRequestID) throws ApiException {
return super.matchAndSearch(matchAndSearchRequest, xRequestID);
}

public MatchAndSearchResponse matchAndSearch(MatchAndSearchRequest matchAndSearchRequest) throws ApiException {
return super.matchAndSearch(matchAndSearchRequest, "");
}
}
3 changes: 1 addition & 2 deletions example/src/main/java/com/regula/facesdk/webclient/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public static void main(String[] args) throws IOException {

var matchImages = List.of(matchImage1, matchImage2, matchImage3);

var matchRequest = new MatchRequest()
.images(matchImages);
var matchRequest = new MatchRequest().images(matchImages);

var matchResponse = sdk.matchApi.match(matchRequest);

Expand Down