Class RegisterE2EMobilePushDevice
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.server.request.RegisterE2EMobilePushDevice
- All Implemented Interfaces:
VoidExecutableApiRequest
public class RegisterE2EMobilePushDevice
extends ZulipApiRequest
implements VoidExecutableApiRequest
Zulip API request builder for registering a E2E mobile push device.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegisterE2EMobilePushDevice(ZulipHttpClient client, TokenKind tokenKind, int pushAccountId, String pushPublicKey, String bouncerPublicKey, String encryptedPushRegistration) RegisterE2EMobilePushDevice aZulipApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the Zulip API request for registering a E2E mobile push device.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
TOKEN_KIND
- See Also:
-
PUSH_ACCOUNT_ID
- See Also:
-
PUSH_PUBLIC_KEY
- See Also:
-
BOUNCER_PUBLIC_KEY
- See Also:
-
ENCRYPTED_PUSH_REGISTRATION
- See Also:
-
-
Constructor Details
-
RegisterE2EMobilePushDevice
public RegisterE2EMobilePushDevice(ZulipHttpClient client, TokenKind tokenKind, int pushAccountId, String pushPublicKey, String bouncerPublicKey, String encryptedPushRegistration) RegisterE2EMobilePushDevice aZulipApiRequest.- Parameters:
client- The Zulip HTTP clienttokenKind- TheTokenKindfor how the token was generatedpushAccountId- Random integer to be included in mobile push notifications invalid input: '&' encrypted payloads to identify pushes as being related to this registrationpushPublicKey- Push public key encoded using an RFC 4648 standard base64 encoderbouncerPublicKey- Bouncer public key encoded using an RFC 4648 standard base64 encoderencryptedPushRegistration- Ciphertext generated by encrypting a PushRegistration Map using the bouncer_public_key field. Encoded using an RFC 4648 standard base64 encoder. The PushRegistration map contains fields token, token_kind, timestamp, and for iOS devices ios_app_id. The map must be JSON encoded before encryption.
-
-
Method Details
-
execute
Executes the Zulip API request for registering a E2E mobile push device.- Specified by:
executein interfaceVoidExecutableApiRequest- Throws:
ZulipClientException- if the request was not successful
-