All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.fitko.fitconnect.api.domain.model.event.Status Maven / Gradle / Ivy

Go to download

Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and routing

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy