From 8813942cc595eedcb3cee1910aeb5cb8a142c497 Mon Sep 17 00:00:00 2001 From: omenem Date: Sun, 22 Mar 2020 18:19:41 +0100 Subject: [PATCH] fixxed --- .../sa4/sanmarinoes/smarthut/dto/RoomSaveRequest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/RoomSaveRequest.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/RoomSaveRequest.java index ca8fa0f..02a0e35 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/RoomSaveRequest.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/dto/RoomSaveRequest.java @@ -6,6 +6,9 @@ import javax.validation.constraints.NotNull; public class RoomSaveRequest { + /** Room identifier */ + private long id; + @NotNull private Room.Icon icon; /** @@ -19,6 +22,14 @@ public class RoomSaveRequest { /** The user given name of this room (e.g. 'Master bedroom') */ @NotNull private String name; + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + public String getName() { return name; }