Class QueryRequest


  • public class QueryRequest
    extends Object
    JSON body parameters for Returns the current devices and identity keys for the given users.
    • Field Detail

      • timeout

        private Long timeout
        The time (in milliseconds) to wait when downloading keys from remote servers. 10 seconds is the recommended default.
      • deviceKeys

        private Map<String,​List<String>> deviceKeys
        Required. The keys to be downloaded. A map from user ID, to a list of device IDs, or to an empty list to indicate all devices for the corresponding user.
      • token

        private String token
        If the client is fetching keys as a result of a device update received in a sync request, this should be the 'since' token of that sync request, or any later sync token. This allows the server to ensure its response contains the keys advertised by the notification in that sync.
    • Constructor Detail

      • QueryRequest

        public QueryRequest()
    • Method Detail

      • getTimeout

        public Long getTimeout()
      • setTimeout

        public void setTimeout​(Long timeout)
      • getToken

        public String getToken()
      • setToken

        public void setToken​(String token)