org.bidib.wizard.api.notification.TimeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
package org.bidib.wizard.api.notification;
import java.time.LocalDateTime;
public class TimeEvent {
public enum TimeEventAction {
START, UPDATE, STOP;
}
private final String connectionId;
private final LocalDateTime timestamp;
private final TimeEventAction action;
public TimeEvent(String conncetionid, LocalDateTime timestamp, TimeEventAction action) {
this.connectionId = conncetionid;
this.timestamp = timestamp;
this.action = action;
}
/**
* @return the connectionId
*/
public String getConnectionId() {
return connectionId;
}
/**
* @return the timestamp
*/
public LocalDateTime getTimestamp() {
return timestamp;
}
/**
* @return the action
*/
public TimeEventAction getAction() {
return action;
}
}