mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 03:14:07 +01:00
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
478b3a4788
commit
7658c1cef1
@ -67,7 +67,7 @@ public class VerisureAlarmsDTO extends VerisureBaseThingDTO {
|
|||||||
private @Nullable String changedVia;
|
private @Nullable String changedVia;
|
||||||
private boolean allowedForFirstLine;
|
private boolean allowedForFirstLine;
|
||||||
private boolean allowed;
|
private boolean allowed;
|
||||||
private List<Object> errorCodes = new ArrayList<>();
|
private @Nullable List<Object> errorCodes = new ArrayList<>();
|
||||||
private @Nullable String typename;
|
private @Nullable String typename;
|
||||||
|
|
||||||
public @Nullable String getType() {
|
public @Nullable String getType() {
|
||||||
@ -102,7 +102,7 @@ public class VerisureAlarmsDTO extends VerisureBaseThingDTO {
|
|||||||
return allowed;
|
return allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Object> getErrorCodes() {
|
public @Nullable List<Object> getErrorCodes() {
|
||||||
return errorCodes;
|
return errorCodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ public class VerisureAlarmsDTO extends VerisureBaseThingDTO {
|
|||||||
result = prime * result + ((localChangedVia == null) ? 0 : localChangedVia.hashCode());
|
result = prime * result + ((localChangedVia == null) ? 0 : localChangedVia.hashCode());
|
||||||
String localDate = date;
|
String localDate = date;
|
||||||
result = prime * result + ((localDate == null) ? 0 : localDate.hashCode());
|
result = prime * result + ((localDate == null) ? 0 : localDate.hashCode());
|
||||||
result = prime * result + errorCodes.hashCode();
|
result = prime * result + ((errorCodes == null) ? 0 : errorCodes.hashCode());
|
||||||
String localName = name;
|
String localName = name;
|
||||||
result = prime * result + ((localName == null) ? 0 : localName.hashCode());
|
result = prime * result + ((localName == null) ? 0 : localName.hashCode());
|
||||||
String localStatusType = statusType;
|
String localStatusType = statusType;
|
||||||
@ -166,7 +166,11 @@ public class VerisureAlarmsDTO extends VerisureBaseThingDTO {
|
|||||||
} else if (!localdate.equals(other.date)) {
|
} else if (!localdate.equals(other.date)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!errorCodes.equals(other.errorCodes)) {
|
if (this.errorCodes == null) {
|
||||||
|
if (other.errorCodes != null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else if (this.errorCodes != null && !this.errorCodes.equals(other.errorCodes)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String localName = name;
|
String localName = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user