23 lines
418 B
Java
23 lines
418 B
Java
package de.ph87.homeautomation.device.devices;
|
|
|
|
import lombok.Getter;
|
|
|
|
import java.io.Serializable;
|
|
|
|
@Getter
|
|
public abstract class DeviceDto implements Serializable {
|
|
|
|
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();
|
|
}
|
|
|
|
}
|