Package com.vonage.client.conversion
Class ConversionClient
java.lang.Object
com.vonage.client.AbstractClient
com.vonage.client.conversion.ConversionClient
public class ConversionClient extends AbstractClient
A client for talking to the Vonage Conversion API. The standard way to obtain an instance of this class is to use
VonageClient.getConversionClient().
Allows you to tell Vonage about the reliability of your 2FA communications.
More information on method parameters can be found at Vonage website: https://developer.nexmo.com/messaging/conversion-api/overview
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConversionClient(HttpWrapper httpWrapper) -
Method Summary
Modifier and Type Method Description voidsubmitConversion(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.
-
Constructor Details
-
Method Details
-
submitConversion
public void submitConversion(ConversionRequest.Type type, java.lang.String messageId, boolean delivered, java.util.Date timestamp) throws VonageResponseParseException, VonageClientExceptionSubmit a request to the Conversion API indicating whether or not a message was delivered.- Parameters:
type- TheConversionRequest.Typetype of com.vonage.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.- Throws:
VonageClientException- if there was a problem with the Vonage request or response objects.VonageResponseParseException- if the response from the API could not be parsed.
-