Added fields tags (@NotNull etc...) also so CurtainSaveRequest
This commit is contained in:
parent
831a2d07c6
commit
e5011110e7
1 changed files with 6 additions and 1 deletions
|
@ -1,13 +1,18 @@
|
|||
package ch.usi.inf.sa4.sanmarinoes.smarthut.dto;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class CurtainsSaveRequest {
|
||||
/** The state of this switch */
|
||||
@NotNull
|
||||
@Min(0)
|
||||
@Max(100)
|
||||
private int openedAmount;
|
||||
|
||||
/** Device identifier */
|
||||
private long id;
|
||||
@NotNull private long id;
|
||||
|
||||
/**
|
||||
* The room this device belongs in, as a foreign key id. To use when updating and inserting from
|
||||
|
|
Loading…
Reference in a new issue