Class DeviceResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.DeviceResponse
-
public class DeviceResponse extends Object
Device response.
-
-
Constructor Summary
Constructors Constructor Description DeviceResponse()
-
Method Summary
Modifier and Type Method Description List<UserDevice>
getDevices()
Long
getStreamId()
String
getUserId()
void
setDevices(List<UserDevice> devices)
void
setStreamId(Long streamId)
void
setUserId(String userId)
-
-
-
Field Detail
-
userId
private String userId
Required. The user ID devices were requested for.
-
streamId
private Long streamId
Required. A unique ID for a given user_id which describes the version of the returned device list. This is matched with the stream_id field in m.device_list_update EDUs in order to incrementally update the returned device_list.
-
devices
private List<UserDevice> devices
Required. The user's devices. May be empty.
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getStreamId
public Long getStreamId()
-
setStreamId
public void setStreamId(Long streamId)
-
getDevices
public List<UserDevice> getDevices()
-
setDevices
public void setDevices(List<UserDevice> devices)
-
-