Class SyncResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.sync.SyncResponse
-
public class SyncResponse extends Object
JSON body response for sync api.
-
-
Field Summary
Fields Modifier and Type Field Description private AccountData
accountData
The global private data created by this user.private DeviceLists
deviceLists
Information on end-to-end device updates, as specified in End-to-end encryption.private Map<String,Long>
deviceOneTimeKeysCount
Information on end-to-end encryption keys, as specified in End-to-end encryption.private String
nextBatch
Required.private Presence
presence
The updates to the presence status of other users.private Rooms
rooms
Updates to rooms.private ToDevice
toDevice
Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.
-
Constructor Summary
Constructors Constructor Description SyncResponse()
-
Method Summary
Modifier and Type Method Description AccountData
getAccountData()
DeviceLists
getDeviceLists()
Map<String,Long>
getDeviceOneTimeKeysCount()
String
getNextBatch()
Presence
getPresence()
Rooms
getRooms()
ToDevice
getToDevice()
void
setAccountData(AccountData accountData)
void
setDeviceLists(DeviceLists deviceLists)
void
setDeviceOneTimeKeysCount(Map<String,Long> deviceOneTimeKeysCount)
void
setNextBatch(String nextBatch)
void
setPresence(Presence presence)
void
setRooms(Rooms rooms)
void
setToDevice(ToDevice toDevice)
-
-
-
Field Detail
-
nextBatch
private String nextBatch
Required. The batch token to supply in the since param of the next /sync request.
-
rooms
private Rooms rooms
Updates to rooms.
-
presence
private Presence presence
The updates to the presence status of other users.
-
accountData
private AccountData accountData
The global private data created by this user.
-
toDevice
private ToDevice toDevice
Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.
-
deviceLists
private DeviceLists deviceLists
Information on end-to-end device updates, as specified in End-to-end encryption.
-
-
Method Detail
-
getNextBatch
public String getNextBatch()
-
setNextBatch
public void setNextBatch(String nextBatch)
-
getRooms
public Rooms getRooms()
-
setRooms
public void setRooms(Rooms rooms)
-
getPresence
public Presence getPresence()
-
setPresence
public void setPresence(Presence presence)
-
getAccountData
public AccountData getAccountData()
-
setAccountData
public void setAccountData(AccountData accountData)
-
getToDevice
public ToDevice getToDevice()
-
setToDevice
public void setToDevice(ToDevice toDevice)
-
getDeviceLists
public DeviceLists getDeviceLists()
-
setDeviceLists
public void setDeviceLists(DeviceLists deviceLists)
-
-