Class SyncResponse


  • public class SyncResponse
    extends Object
    JSON body response for sync api.
    • 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.
      • deviceOneTimeKeysCount

        private Map<String,​Long> deviceOneTimeKeysCount
        Information on end-to-end encryption keys, as specified in End-to-end encryption.
    • Constructor Detail

      • SyncResponse

        public SyncResponse()
    • 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)
      • setAccountData

        public void setAccountData​(AccountData accountData)
      • getToDevice

        public ToDevice getToDevice()
      • setToDevice

        public void setToDevice​(ToDevice toDevice)
      • setDeviceLists

        public void setDeviceLists​(DeviceLists deviceLists)
      • getDeviceOneTimeKeysCount

        public Map<String,​Long> getDeviceOneTimeKeysCount()
      • setDeviceOneTimeKeysCount

        public void setDeviceOneTimeKeysCount​(Map<String,​Long> deviceOneTimeKeysCount)