com.yoti.api.client.docs.session.retrieve.ResourceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoti-sdk-api Show documentation
Show all versions of yoti-sdk-api Show documentation
Java SDK for simple integration with the Yoti platform
The newest version!
package com.yoti.api.client.docs.session.retrieve;
import java.util.ArrayList;
import java.util.List;
import com.yoti.api.client.docs.session.retrieve.configuration.capture.source.AllowedSourceResponse;
import com.fasterxml.jackson.annotation.JsonProperty;
public abstract class ResourceResponse {
@JsonProperty("id")
private String id;
@JsonProperty("tasks")
private List tasks;
@JsonProperty("source")
private AllowedSourceResponse source;
public String getId() {
return id;
}
public List extends TaskResponse> getTasks() {
return tasks;
}
public AllowedSourceResponse getSource() {
return source;
}
protected List filterTasksByType(Class clazz) {
List filteredList = new ArrayList<>();
for (TaskResponse taskResponse : tasks) {
if (clazz.isInstance(taskResponse)) {
filteredList.add(clazz.cast(taskResponse));
}
}
return filteredList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy