Class DeviceListUpdateContent
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.edu.content.DeviceListUpdateContent
-
- All Implemented Interfaces:
EphemeralDataUnitContent
public class DeviceListUpdateContent extends Object implements EphemeralDataUnitContent
Device list update.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleandeletedTrue if the server is announcing that this device has been deleted.private StringdeviceDisplayNameThe public human-readable name of this device.private StringdeviceIdRequired.private DeviceKeyskeysThe updated identity keys (if any) for this device.private StringprevIdThe stream_ids of any prior m.device_list_update EDUs sent for this user which have not been referred to already in an EDU's prev_id field.private StringstreamIdRequired.private StringuserIdRequired.
-
Constructor Summary
Constructors Constructor Description DeviceListUpdateContent()
-
Method Summary
Modifier and Type Method Description BooleangetDeleted()StringgetDeviceDisplayName()StringgetDeviceId()DeviceKeysgetKeys()StringgetPrevId()StringgetStreamId()StringgetUserId()voidsetDeleted(Boolean deleted)voidsetDeviceDisplayName(String deviceDisplayName)voidsetDeviceId(String deviceId)voidsetKeys(DeviceKeys keys)voidsetPrevId(String prevId)voidsetStreamId(String streamId)voidsetUserId(String userId)
-
-
-
Field Detail
-
userId
private String userId
Required. The user ID who owns this device.
-
deviceId
private String deviceId
Required. The ID of the device whose details are changing.
-
deviceDisplayName
private String deviceDisplayName
The public human-readable name of this device. Will be absent if the device has no name.
-
streamId
private String streamId
Required. An ID sent by the server for this update, unique for a given user_id. Used to identify any gaps in the sequence of m.device_list_update EDUs broadcast by a server.
-
prevId
private String prevId
The stream_ids of any prior m.device_list_update EDUs sent for this user which have not been referred to already in an EDU's prev_id field. If the receiving server does not recognise any of the prev_ids, it means an EDU has been lost and the server should query a snapshot of the device list via /user/keys/query in order to correctly interpret future m.device_list_update EDUs. May be missing or empty for the first EDU in a sequence.
-
deleted
private Boolean deleted
True if the server is announcing that this device has been deleted.
-
keys
private DeviceKeys keys
The updated identity keys (if any) for this device. May be absent if the device has no E2E keys defined.
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getDeviceId
public String getDeviceId()
-
setDeviceId
public void setDeviceId(String deviceId)
-
getDeviceDisplayName
public String getDeviceDisplayName()
-
setDeviceDisplayName
public void setDeviceDisplayName(String deviceDisplayName)
-
getStreamId
public String getStreamId()
-
setStreamId
public void setStreamId(String streamId)
-
getPrevId
public String getPrevId()
-
setPrevId
public void setPrevId(String prevId)
-
getDeleted
public Boolean getDeleted()
-
setDeleted
public void setDeleted(Boolean deleted)
-
getKeys
public DeviceKeys getKeys()
-
setKeys
public void setKeys(DeviceKeys keys)
-
-