Releases: Vonage/vonage-java-sdk
Releases · Vonage/vonage-java-sdk
v4.2.1
v4.2.0
Added
- Missing builders for
StreamAction
,AdvancedInsightRequest
,StandardInsightRequest
, andBasicInsightRequest
.
Fixed
AbstractMethod
will force UTF-8 charset for requests usingStringEntity
.- Tests will now run using static builder methods for each of the classes that use builders for construction.
v4.1.0
Added
- Added static
builder
methods toAction
classes to reduce some of the verbosity around using them. You can now doTalkAction action = TalkAction.builder("Hello World!").build();
instead of justTalkAction action = new TalkAction.Builder("Hello World).build();
. - Added static
builder
methods toNexmoClient
to reduce some of the verbosity around instantiating the client. - Added
ncco
property to theCall
object for use in theVoiceClient.createCall
method. You can now send anNcco
directly to the API instead of defining ananswer_url
.
v4.0.1
v4.0.0
Added
- Added support for Java v8
- 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
. - Added
NexmoClient.Builder
to allow for fluent creation ofNexmoClient
. - Added
getBasicNumberInsight
,getStandardNumberInsight
, andgetAdvancedNumberInsight
toInsightClient
which takes a respective*InsightRequest
. - Added
CallerIdentity
data object to be used in number insight. - Added
Builder
toCallsFilter
class to make filtering search results more intuative.
Changed
- Dropped support for Java v7
- 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. - Removed
ConnectWebSocketNcco
as it is built intoConnectAction
. VerifyClient
will now return*Response
instead of*Result
objects.- Refactored
com.nexmo.client.voice.endpoints
to be part of thecom.nexmo.client.voice
package. - Made all
*Endpoint
and*Method
classes package scoped. Users should always go through the appropriateClient
classes. - Moved
AbstractMethod
to the root package. - Removed legacy
setUri
methods from the variousVoiceClient
endpoints. This should be done throughHttpConfig
. - Changed
BasicInsightRequest
,StandardInsightRequest
, andAdvancedInsightRequest
to use builders as constructor
telescoping is clunky. Added some static factory methods to these classes to allow shortcutting through the builder for "simple" requests. - Updated
BasicInsightEndpoint
,StandardInsightEndpoint
, andAdvancedInsightEndpoint
to a more restrictive scope and moved them to thecom.nexmo.client.insight
package. - Changed
status
property ofBasicInsightResponse
to anInsightStatus
enumeration. - Changed
SendMessageEndpoint
from XML to JSON. It now returns aSmsSubmissionResponse
instead of an array result.
v3.10.0
v3.9.0
[3.9.0] - 2018-10-18
Added
- Added missing voices to
VoiceName
enum. - Added configuration object to be used with
HttpWrapper
to allow for customization. - Added the ability to customize the base URI used for the various endpoints.
- Added
ConnectWebSocketNcco
to handle connecting to WebSocket endpoints similar toConnectNcco
to maintain backwards compatibility. - Added
getDisplayName
method toVoiceName
to represent the name that is used in serialization.
Changed
TalkNcco
to useVoiceName
object instead ofString
HttpWrapper
now uses system properties by default.
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.