Skip to content
Merged
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 @@ -21,6 +21,11 @@

/** ProcessParams */
public class ProcessParams {
public static final String SERIALIZED_NAME_LCID_FILTER = "lcidFilter";

@SerializedName(SERIALIZED_NAME_LCID_FILTER)
private List<Integer> lcidFilter = null;

public static final String SERIALIZED_NAME_CHECK_LIVENESS = "checkLiveness";

@SerializedName(SERIALIZED_NAME_CHECK_LIVENESS)
Expand Down Expand Up @@ -280,6 +285,34 @@ public class ProcessParams {
@SerializedName(SERIALIZED_NAME_RFID)
private ProcessParamsRfid rfid;

public ProcessParams withLcidFilter(List<Integer> lcidFilter) {
this.lcidFilter = lcidFilter;
return this;
}

public ProcessParams addLcidFilterItem(Integer lcidFilterItem) {
if (this.lcidFilter == null) {
this.lcidFilter = new ArrayList<Integer>();
}
this.lcidFilter.add(lcidFilterItem);
return this;
}

/**
* The list of LCID types to recognize. If empty, values with all LCID types will be extracted.
* Empty by default.
*
* @return lcidFilter
*/
@javax.annotation.Nullable
public List<Integer> getLcidFilter() {
return lcidFilter;
}

public void setLcidFilter(List<Integer> lcidFilter) {
this.lcidFilter = lcidFilter;
}

public ProcessParams withCheckLiveness(Boolean checkLiveness) {
this.checkLiveness = checkLiveness;
return this;
Expand Down Expand Up @@ -1370,7 +1403,8 @@ public boolean equals(java.lang.Object o) {
return false;
}
ProcessParams processParams = (ProcessParams) o;
return Objects.equals(this.checkLiveness, processParams.checkLiveness)
return Objects.equals(this.lcidFilter, processParams.lcidFilter)
&& Objects.equals(this.checkLiveness, processParams.checkLiveness)
&& Objects.equals(this.lcidIgnoreFilter, processParams.lcidIgnoreFilter)
&& Objects.equals(this.oneShotIdentification, processParams.oneShotIdentification)
&& Objects.equals(this.useFaceApi, processParams.useFaceApi)
Expand Down Expand Up @@ -1427,6 +1461,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
return Objects.hash(
lcidFilter,
checkLiveness,
lcidIgnoreFilter,
oneShotIdentification,
Expand Down Expand Up @@ -1484,6 +1519,7 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessParams {\n");
sb.append(" lcidFilter: ").append(toIndentedString(lcidFilter)).append("\n");
sb.append(" checkLiveness: ").append(toIndentedString(checkLiveness)).append("\n");
sb.append(" lcidIgnoreFilter: ").append(toIndentedString(lcidIgnoreFilter)).append("\n");
sb.append(" oneShotIdentification: ")
Expand Down