mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
add toString method (#4592)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
+9
-1
@@ -110,7 +110,7 @@ public class SddpDevice {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
*
|
||||
* @param headers a map of parameter name / value pairs.
|
||||
* @param offline indicates if the device is being created from a NOTIFY OFFLINE announcement.
|
||||
*/
|
||||
@@ -162,4 +162,12 @@ public class SddpDevice {
|
||||
public boolean isExpired() {
|
||||
return Instant.now().isAfter(expireInstant);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SddpDevice [from=" + from + ", host=" + host + ", maxAge=" + maxAge + ", type=" + type
|
||||
+ ", primaryProxy=" + primaryProxy + ", proxies=" + proxies + ", manufacturer=" + manufacturer
|
||||
+ ", model=" + model + ", driver=" + driver + ", ipAddress=" + ipAddress + ", port=" + port
|
||||
+ ", macAddress=" + macAddress + ", expireInstant=" + expireInstant + "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user