Removed setId methods from DTO classes

This commit is contained in:
omenem 2020-03-08 18:58:45 +01:00
parent a0fe5f989a
commit 8838beb0e0
8 changed files with 0 additions and 32 deletions

View file

@ -33,10 +33,6 @@ public class ButtonDimmerSaveRequest {
this.lights = newLights; this.lights = newLights;
} }
public void setId(long id) {
this.id = id;
}
public void setRoom(Room room) { public void setRoom(Room room) {
this.room = room; this.room = room;
} }

View file

@ -28,10 +28,6 @@ public class DimmableLightSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoom(Room room) { public void setRoom(Room room) {
this.room = room; this.room = room;
} }

View file

@ -21,10 +21,6 @@ public class KnobDimmerSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }

View file

@ -17,10 +17,6 @@ public class MotionSensorSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }

View file

@ -18,10 +18,6 @@ public class RegularLightSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }

View file

@ -43,10 +43,6 @@ public class SensorSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }

View file

@ -18,10 +18,6 @@ public class SmartPlugSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }

View file

@ -18,10 +18,6 @@ public class SwitchSaveRequest {
/** The name of the device as assigned by the user (e.g. 'Master bedroom light') */ /** The name of the device as assigned by the user (e.g. 'Master bedroom light') */
@NotNull private String name; @NotNull private String name;
public void setId(long id) {
this.id = id;
}
public void setRoomId(Long roomId) { public void setRoomId(Long roomId) {
this.roomId = roomId; this.roomId = roomId;
} }