setFinalPayload method

void setFinalPayload(
  1. String cipherPayload
)

Sets the final payload for the message, including the encrypted data.

This method combines the original payload with the encrypted cipher payload into the final format ready for transmission.

Parameters:

  • cipherPayload: The encrypted version of the payload data

Implementation

void setFinalPayload(String cipherPayload) {
  _finalSendPayload.addAll(payload);
  _finalSendPayload["payload"] = cipherPayload;
}