Releases: Vonage/vonage-java-sdk
Releases · Vonage/vonage-java-sdk
v4.0.0-beta.1
Note: This is a snapshot of the upcoming v4.0.0 of the library. Things may change.
Added
- Added
Ncco
class to wrapCollection<Action>
and handle the serialization of NCCO json throughtoJson
. - Added the following
Builder
classes:ConnectAction.Builder
ConversationAction.Builder
InputAction.Builder
RecordAction.Builder
StreamAction.Builder
TalkAction.Builder
- Added
PhoneEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
. - Added
WebSocketEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
. - Added
SipEndpoint
tocom.nexmo.voice.ncco
package for use withConnectAction
. - Added
EventMethod
enumeration to replace the usage of strings. - Added
EventType
enumeration and the ability to specify theeventType
property ofConnectAction
.
Changed
- Renamed all
Ncco
classes toAction
classes:- Renamed
Ncco
interface toAction
- Renamed
ConnectNcco
toConnectAction
- Renamed
ConversationNcco
toConversationAction
- Renamed
InputNcco
toInputAction
- Renamed
RecordNcco
toRecordAction
- Renamed
StreamNcco
toStreamAction
- Renamed
TalkNcco
toTalkAction
- Renamed
- All
Action
classes now must be constructed through the providedBuilder
class. - All
Action
classes are now immutable. - The
eventUrl
property ofConnectAction
,ConversationAction
,InputAction
, andRecordAction
is now aCollection<String>
instead of an array. - The
eventMethod
property ofConnectAction
,ConversationAction
,InputAction
, andRecordAction
is now anEventMethod
enum instead of a String.
v3.8.0
Added
- Added
com.nexmo.client.incoming.MessageEvent
to assist with the deserialization of the JSON payload used for incoming messages. - Added
com.nexmo.client.incoming.CallEvent
to assist with the deserialization of the JSON payload used for call events. - Added
com.nexmo.client.incoming.InputEvent
to assist with the deserialization of the JSON payload used for input events. - Added
com.nexmo.client.incoming.RecordEvent
to assist with the deserialization of the JSON payload used for record events. - Added secret management methods to
AccountClient
in the form of the following methods:listSecrets
for listing all secrets.getSecret
for getting information on a specific secret.revokeSecret
for revoking a secret.createSecret
for creating a new secret.
Changed
- User Agent String now includes the Java version in addition to the client version.
enum
classes that are used to deserialize JSON have been updated to return anUNKNOWN
value instead of throwing anIllegalArgumentException
when the value cannot be deserialized. Theseenum
s are:RecordingFormat
MachineDetection
ModifyCallAction
CallDirection
CallStatus
RoamingDetails.RoamingStatus
AdvancedInsightResponse.PortedStatus
AdvancedInsightResponse.Validity
AdvancedInsightResponse.Reachability
Fixed
- Updated
StreamNcco
'sstreamUrl
to serialize into an array for use in the Voice API.
v3.7.0
v3.6.0
Added
- Added
getSmsPrice
toAccountClient
for getting SMS pricing for a country. - Added
getVoicePrice
toAccountClient
for getting voice pricing for a country. - Added
getPrefixPrice
toAccountClient
for getting SMS and voice pricing for a prefix. - Added
topUp
toAccountClient
for topping up your account which has auto-reload enabled. - Added
getSms
toSmsClient
for searching for a single message by id. - Added
ConversionClient
and the ability to interact with the Nexmo Conversion API.
v3.5.0
Changed
-
Updated
VerifyClient
to use the JSON endpoints instead of XML. -
Updated endpoints which are used by
VerifyClient
from public to package scope in order to encourage usage throughVerifyClient
. -
Deprecated XML version of the following endpoints:
VerifyEndpoint
CheckEndpoint
SearchEndpoint
-
Deprecated the following XML results:
VerifyResult
should useVerifyResponse
CheckResult
should useCheckResponse
SearchResult
should useSearchVerifyResponse
-
Deprecated the following XML methods:
VerifyCheckMethod
Added
- Added
VerifyStatus
enumeration to use for statuses coming back from the verify endpoint. - Added
VerifyResponse
,CheckResponse
, andSearchVerifyResponse
for JSON responses to match other JSON using endpoints. - Added
VerifyMethod
,CheckMethod
, andSearchMethod
for better segregation between endpoint and method classes. - Add
split
attribute to theRecordNcco
object.
Fixed
- Updated
ConversationNcco
'smusicOnHoldUrl
to serialize into an array for use in the Voice API.
v3.4.1
v3.4.0
Changed
- Modify call now works with the API again, returning
null
(because the API now returns 204 No Content) - VerifyRequest now supports all supported parameters.
- Client-side validation for the
from
parameter's length on theMessage
class has been removed.
Added
- Add
level
attribute to theTalkNcco
object.