dev.fitko.fitconnect.api.domain.model.event.Status 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.event;
import dev.fitko.fitconnect.api.domain.model.event.problems.Problem;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.Date;
import java.util.List;
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Status {
private EventState state;
private String issuer;
private Date issuedAt;
private List problems;
public static Status fromEventLogEntry(EventLogEntry eventLogEntry){
return new Status(eventLogEntry.getEvent().getState(), eventLogEntry.getIssuer(), eventLogEntry.getIssueTime(), eventLogEntry.getProblems());
}
}