-
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-2445: [AB] Add text-extraction task recommendation to the GET ses…
…sion endpoint
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 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
31 changes: 31 additions & 0 deletions
31
yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/retrieve/TaskReasonResponse.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.yoti.api.client.docs.session.retrieve; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class TaskReasonResponse { | ||
|
||
@JsonProperty("value") | ||
private String value; | ||
|
||
@JsonProperty("detail") | ||
private String detail; | ||
|
||
/** | ||
* The reason for the recommendation | ||
* | ||
* @return the reason value | ||
*/ | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
/** | ||
* The fine-grained details for the reason of the recommendation | ||
* | ||
* @return the details | ||
*/ | ||
public String getDetail() { | ||
return detail; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...i/src/main/java/com/yoti/api/client/docs/session/retrieve/TaskRecommendationResponse.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.yoti.api.client.docs.session.retrieve; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class TaskRecommendationResponse { | ||
|
||
@JsonProperty("value") | ||
private String value; | ||
|
||
@JsonProperty("reason") | ||
private TaskReasonResponse reason; | ||
|
||
/** | ||
* The recommendation value | ||
* | ||
* @return the value | ||
*/ | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
/** | ||
* The reason for the recommendation | ||
* | ||
* @return the reason | ||
*/ | ||
public TaskReasonResponse getReason() { | ||
return reason; | ||
} | ||
|
||
} |