Interface SmsSender

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_NAME
      Bean name.
    • Method Detail

      • send

        default boolean send​(java.lang.String from,
                             java.lang.String to,
                             java.lang.String message)
        Send sms to phone number.
        Parameters:
        from - the from
        to - the to
        message - the message
        Returns:
        true/false
      • canSend

        default boolean canSend()
        Whether it can send an SMS.
        Returns:
        whether it can send an SMS
      • noOp

        static SmsSender noOp()
        No op sms sender.
        Returns:
        the sms sender