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 String
deviceId
Required.private String
displayName
Display name set by the user for this device.private String
lastSeenIp
The IP address where this device was last seen.private Long
lastSeenTs
The 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 String
getDeviceId()
String
getDisplayName()
String
getLastSeenIp()
Long
getLastSeenTs()
void
setDeviceId(String deviceId)
void
setDisplayName(String displayName)
void
setLastSeenIp(String lastSeenIp)
void
setLastSeenTs(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)
-
-