Class Device
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.device.Device
-
public class Device extends Object
Device.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdeviceIdRequired.private StringdisplayNameDisplay name set by the user for this device.private StringlastSeenIpThe IP address where this device was last seen.private LonglastSeenTsThe timestamp (in milliseconds since the unix epoch) when this devices was last seen.
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
Modifier and Type Method Description StringgetDeviceId()StringgetDisplayName()StringgetLastSeenIp()LonggetLastSeenTs()voidsetDeviceId(String deviceId)voidsetDisplayName(String displayName)voidsetLastSeenIp(String lastSeenIp)voidsetLastSeenTs(Long lastSeenTs)
-
-
-
Field Detail
-
deviceId
private String deviceId
Required. Identifier of this device.
-
displayName
private String displayName
Display name set by the user for this device. Absent if no name has been set.
-
lastSeenIp
private String lastSeenIp
The IP address where this device was last seen. (May be a few minutes out of date, for efficiency reasons).
-
lastSeenTs
private Long lastSeenTs
The timestamp (in milliseconds since the unix epoch) when this devices was last seen. (May be a few minutes out of date, for efficiency reasons).
-
-
Method Detail
-
getDeviceId
public String getDeviceId()
-
setDeviceId
public void setDeviceId(String deviceId)
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getLastSeenIp
public String getLastSeenIp()
-
setLastSeenIp
public void setLastSeenIp(String lastSeenIp)
-
getLastSeenTs
public Long getLastSeenTs()
-
setLastSeenTs
public void setLastSeenTs(Long lastSeenTs)
-
-