dev.fitko.fitconnect.api.domain.model.event.Status Maven / Gradle / Ivy
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());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy