dev.fitko.fitconnect.api.domain.model.callback.NewSubmissionsCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and
routing
package dev.fitko.fitconnect.api.domain.model.callback;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.fitko.fitconnect.api.domain.model.submission.SubmissionForPickup;
import java.util.List;
/**
* DTO for the callback event body for new-submissions.
*
* @see New Submission Callback Event
*/
public class NewSubmissionsCallback {
private final String callbackType;
private final List submissions;
@JsonCreator
public NewSubmissionsCallback(@JsonProperty("type") final String callbackType, @JsonProperty("submissions") final List submissions) {
this.callbackType = callbackType;
this.submissions = submissions;
}
public String getCallbackType() {
return callbackType;
}
public List getSubmissions() {
return submissions;
}
}