package de.ph87.homeautomation.device.devices; import lombok.Getter; @Getter public abstract class DeviceDto { public final long id; public final String title; public final String type; public DeviceDto(final Device device) { this.id = device.getId(); this.title = device.getTitle(); this.type = device.getClass().getSimpleName(); } }