Package com.storedobject.sms
Interface QuickSender
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to send out an SMS quickly.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuickSendercreate()Creates an instance of QuickSender by loading the class associated with the "application.quick.sms" property.booleanSend an SMS.default booleanSend an SMS.default booleanSend an SMS.
-
Method Details
-
send
-
send
Send an SMS.- Parameters:
mobileNumber- Mobile number.message- Message text.otp- OTP value if it needs to be included. The message will contain a string containing the word OTP in angle brackets that can be replaced with this while sending out the message.- Returns:
- True if sent successfully.
-
send
Send an SMS.- Parameters:
mobileNumber- Mobile number.message- Message text.otp- OTP value if it needs to be included. The message will contain a string containing the word OTP in angle brackets that can be replaced with this while sending out the message.customTag- Custom tag set if any.- Returns:
- True if sent successfully.
-
create
Creates an instance of QuickSender by loading the class associated with the "application.quick.sms" property.- Returns:
- An instance of QuickSender.
- Throws:
SOException- If there is an error creating the instance.
-