31 lines
644 B
Java
31 lines
644 B
Java
package de.ph87.homeautomation.bulk.entry;
|
|
|
|
import de.ph87.homeautomation.property.PropertyDto;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class BulkEntryDto {
|
|
|
|
private final long id;
|
|
|
|
private final long version;
|
|
|
|
private final int position;
|
|
|
|
private final boolean enabled;
|
|
|
|
private final PropertyDto property;
|
|
|
|
private final double value;
|
|
|
|
public BulkEntryDto(final BulkEntry entry, final PropertyDto propertyDto) {
|
|
this.id = entry.getId();
|
|
this.version = entry.getVersion();
|
|
this.enabled = entry.isEnabled();
|
|
this.position = entry.getPosition();
|
|
this.property = propertyDto;
|
|
this.value = entry.getValue();
|
|
}
|
|
|
|
}
|