-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-2507: Allow the Relying Business to set response delay for tasks …
…and Liveness checks in the sandbox
- Loading branch information
Showing
7 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
.../java/com/yoti/api/client/sandbox/docs/request/check/SandboxZoomLivenessCheckBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
package com.yoti.api.client.sandbox.docs.request.check; | ||
|
||
import static com.yoti.api.client.spi.remote.util.Validation.notNull; | ||
import static com.yoti.validation.Validation.notNull; | ||
|
||
import com.yoti.api.client.docs.DocScanConstants; | ||
import com.yoti.api.client.sandbox.docs.request.check.report.SandboxCheckReport; | ||
|
||
public class SandboxZoomLivenessCheckBuilder extends SandboxCheck.Builder<SandboxZoomLivenessCheckBuilder> { | ||
|
||
SandboxZoomLivenessCheckBuilder() { | ||
} | ||
private Integer responseDelay; | ||
|
||
SandboxZoomLivenessCheckBuilder() {} | ||
|
||
@Override | ||
protected SandboxZoomLivenessCheckBuilder self() { | ||
return this; | ||
} | ||
|
||
public SandboxZoomLivenessCheckBuilder withResponseDelay(Integer responseDelay) { | ||
this.responseDelay = responseDelay; | ||
return this; | ||
} | ||
|
||
@Override | ||
public SandboxLivenessCheck build() { | ||
notNull(recommendation, "recommendation"); | ||
|
||
SandboxCheckReport report = new SandboxCheckReport(recommendation, breakdown); | ||
SandboxCheckResult result = new SandboxCheckResult(report); | ||
|
||
return new SandboxLivenessCheck(result, DocScanConstants.ZOOM); | ||
return new SandboxLivenessCheck(result, DocScanConstants.ZOOM, responseDelay); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters