Package com.nexmo.client.conversion
Class ConversionClient
- java.lang.Object
-
- com.nexmo.client.AbstractClient
-
- com.nexmo.client.conversion.ConversionClient
-
public class ConversionClient extends AbstractClient
A client for talking to the Nexmo Conversion API. The standard way to obtain an instance of this class is to useNexmoClient.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
-
-
Field Summary
-
Fields inherited from class com.nexmo.client.AbstractClient
httpWrapper
-
-
Constructor Summary
Constructors Constructor Description ConversionClient(HttpWrapper httpWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ConversionClient
public ConversionClient(HttpWrapper httpWrapper)
-
-
Method Detail
-
submitConversion
public void submitConversion(ConversionRequest.Type type, java.lang.String messageId, boolean delivered, java.util.Date timestamp) throws java.io.IOException, NexmoClientException
Submit a request to the Conversion API indicating whether or not a message was delivered.- Parameters:
type
- TheConversionRequest.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.- Throws:
java.io.IOException
- if a network error occurred contacting the Nexmo Conversion API.NexmoClientException
- if there was a problem with the Nexmo request or response objects.
-
-