Class QueryRequest
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.encryption.QueryRequest
-
public class QueryRequest extends Object
JSON body parameters for Returns the current devices and identity keys for the given users.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,List<String>>
deviceKeys
Required.private Long
timeout
The time (in milliseconds) to wait when downloading keys from remote servers. 10 seconds is the recommended default.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.
-
Constructor Summary
Constructors Constructor Description QueryRequest()
-
Method Summary
Modifier and Type Method Description Map<String,List<String>>
getDeviceKeys()
Long
getTimeout()
String
getToken()
void
setDeviceKeys(Map<String,List<String>> deviceKeys)
void
setTimeout(Long timeout)
void
setToken(String token)
-
-
-
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.
-
-