Package com.vonage.client.verify2
Class SmsWorkflow
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.verify2.Workflow
com.vonage.client.verify2.SmsWorkflow
- All Implemented Interfaces:
Jsonable
Defines workflow properties for sending a verification code to a user via SMS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for an SMS workflow. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSmsWorkflow(String to) Constructs a new SMS verification workflow.SmsWorkflow(String to, String appHash) Deprecated.Use builder(String).SmsWorkflow(String to, String from, String appHash) Deprecated.Use builder(String) instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic SmsWorkflow.BuilderEntrypoint for constructing an instance of this class.Android Application Hash Key for automatic code detection on a user's device.Optional value corresponding to a TemplateID for SMS delivery using Indian Carriers.Optional PEID required for SMS delivery using Indian Carriers.getFrom()The number or sender ID the message will be sent from.protected StringvalidateFrom(String from) protected StringvalidateTo(String to) Methods inherited from class com.vonage.client.verify2.Workflow
getChannel, getToMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SmsWorkflow
Constructs a new SMS verification workflow.- Parameters:
to- The number to send the message to, in E.164 format.
-
SmsWorkflow
Deprecated.Use builder(String).Constructs a new SMS verification workflow.- Parameters:
to- The number to send the message to, in E.164 format.appHash- Android Application Hash Key for automatic code detection on a user's device.
-
SmsWorkflow
Deprecated.Use builder(String) instead.Constructs a new SMS verification workflow.- Parameters:
to- The number to send the message to, in E.164 format.from- The number or sender ID to send the SMS from.appHash- Android Application Hash Key for automatic code detection on a user's device.- Since:
- 8.1.0
-
-
Method Details
-
validateFrom
- Overrides:
validateFromin classWorkflow
-
getAppHash
Android Application Hash Key for automatic code detection on a user's device.- Returns:
- The Android application hash key (11 characters in length), or
nullif not set.
-
getFrom
The number or sender ID the message will be sent from.- Returns:
- The sender phone number or sender ID, or
nullif unspecified. - Since:
- 8.1.0
-
getContentId
Optional value corresponding to a TemplateID for SMS delivery using Indian Carriers.- Returns:
- The content ID, or
nullif unspecified. - Since:
- 8.2.0
-
getEntityId
Optional PEID required for SMS delivery using Indian Carriers.- Returns:
- The entity ID, or
nullif unspecified. - Since:
- 8.2.0
-
builder
Entrypoint for constructing an instance of this class.- Parameters:
to- (REQUIRED) The destination phone number in E.164 format.- Returns:
- A new Builder.
- Since:
- 8.2.0
-
validateTo
- Overrides:
validateToin classWorkflow
-