public class ConversionClient extends AbstractClient
NexmoClient.getConversionClient().
Allows you to tell Nexmo about the reliability of your 2FA communications.
More information on method parameters can be found at Nexmo website: https://developer.nexmo.com/messaging/conversion-api/overview
httpWrapper| Constructor and Description |
|---|
ConversionClient(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
submitConversion(ConversionRequest.Type type,
java.lang.String messageId,
boolean delivered,
java.util.Date timestamp)
Submit a request to the Conversion API indicating whether or not a message was delivered.
|
public ConversionClient(HttpWrapper httpWrapper)
public void submitConversion(ConversionRequest.Type type, java.lang.String messageId, boolean delivered, java.util.Date timestamp) throws NexmoResponseParseException, NexmoClientException
type - The ConversionRequest.Type type of com.nexmo.client.conversion.messageId - The id of the message that was sent.delivered - A boolean indicating whether or not it was delivered.timestamp - A timestamp of when it was known to be delivered.NexmoClientException - if there was a problem with the Nexmo request or response objects.NexmoResponseParseException - if the response from the API could not be parsed.