Class WebsmsSmsClient

java.lang.Object
ch.tocco.nice2.optional.sms.impl.services.provider.WebsmsSmsClient
All Implemented Interfaces:
SmsClient

@Component public class WebsmsSmsClient extends Object implements SmsClient
  • Constructor Details

    • WebsmsSmsClient

      public WebsmsSmsClient(org.slf4j.Logger log, WebsmsRestHelper websmsRestHelper)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface SmsClient
    • sendSms

      public SmsClient.SmsResponse sendSms(SmsClient.Sms sms, boolean simulateSms)
      Specified by:
      sendSms in interface SmsClient
    • checkSmsRecipient

      public boolean checkSmsRecipient(Entity smsRecipient)
      Description copied from interface: SmsClient
      Checks whether the given entity is a valid sms recipient for this SmsClient or not
      Specified by:
      checkSmsRecipient in interface SmsClient
      Returns:
      true if the given entity is a valid sms recipient
    • checkSmsRecipient

      public boolean checkSmsRecipient(String phoneNumber)
      Description copied from interface: SmsClient
      Checks whether the given phone number is a valid sms recipient for this SmsClient or not
      Specified by:
      checkSmsRecipient in interface SmsClient
      Returns:
      true if the given phone number is a valid sms recipient
    • checkSmsResponse

      public boolean checkSmsResponse(SmsClient.SmsResponse smsResponse)
      Description copied from interface: SmsClient
      Checks whether ths sms has been sent correctly or not.
      Specified by:
      checkSmsResponse in interface SmsClient
      Returns:
      true if the sms has been sent correctly.