Class LinkMobilitySmsSendPlugin

java.lang.Object
io.vertigo.social.plugins.sms.linkmobility.LinkMobilitySmsSendPlugin
All Implemented Interfaces:
io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin, SmsSendPlugin

public class LinkMobilitySmsSendPlugin extends Object implements SmsSendPlugin
  • Constructor Details

    • LinkMobilitySmsSendPlugin

      @Inject public LinkMobilitySmsSendPlugin(Optional<String> whitelistPrefixesOpt, Optional<Long> maxSmsPerMinute, LinkMobilitySmsWebServiceClient linkMobilitySmsWebServiceClient, io.vertigo.core.analytics.AnalyticsManager analyticsManager)
      Constructor.
      Parameters:
      whitelistPrefixesOpt - prefixes of phone numbers to accept
      maxSmsPerMinute - maximum number of SMS to send in a minute (LinkMobility reject if too fast)
      linkMobilitySmsWebServiceClient - SMS web service client
      analyticsManager - analytics manager
  • Method Details

    • acceptSms

      public boolean acceptSms(Sms sms)
      Description copied from interface: SmsSendPlugin
      Is the sms accepted by this plugin. Could be for region of the phone numnber, the quota limit of the plugin etc..
      Specified by:
      acceptSms in interface SmsSendPlugin
      Parameters:
      sms - sms to send
    • sendSms

      public SmsSendingReport sendSms(Sms sms)
      Description copied from interface: SmsSendPlugin
      Sends a sms.
      Specified by:
      sendSms in interface SmsSendPlugin
      Parameters:
      sms - sms to send
      Returns:
      a sending report
    • getConfiguration

      public Map<String,Object> getConfiguration()