Class MobileOptionsBuilder


public final class MobileOptionsBuilder extends OptionsBuilder<MobileOptionsBuilder>
  • Constructor Details

    • MobileOptionsBuilder

      MobileOptionsBuilder(Store store, Keys keys)
  • Method Details

    • device

      public MobileOptionsBuilder device(CompanionDevice device)
      Set the device to emulate
      Returns:
      the same instance for chaining
    • businessAddress

      public MobileOptionsBuilder businessAddress(String businessAddress)
      Sets the business' address
      Returns:
      the same instance for chaining
    • businessLongitude

      public MobileOptionsBuilder businessLongitude(Double businessLongitude)
      Sets the business' address longitude
      Returns:
      the same instance for chaining
    • businessLatitude

      public MobileOptionsBuilder businessLatitude(Double businessLatitude)
      Sets the business' address latitude
      Returns:
      the same instance for chaining
    • businessDescription

      public MobileOptionsBuilder businessDescription(String businessDescription)
      Sets the business' description
      Returns:
      the same instance for chaining
    • businessWebsite

      public MobileOptionsBuilder businessWebsite(String businessWebsite)
      Sets the business' website
      Returns:
      the same instance for chaining
    • businessEmail

      public MobileOptionsBuilder businessEmail(String businessEmail)
      Sets the business' email
      Returns:
      the same instance for chaining
    • businessCategory

      public MobileOptionsBuilder businessCategory(BusinessCategory businessCategory)
      Sets the business' category
      Returns:
      the same instance for chaining
    • registered

      public Optional<Whatsapp> registered()
      Expects the session to be already registered This means that the verification code has already been sent to Whatsapp If this is not the case, an exception will be thrown
      Returns:
      a non-null optional of whatsapp
    • unverified

      Expects the session to still need verification This means that you already have a code, but it hasn't already been sent to Whatsapp
      Returns:
      a non-null selector
    • unregistered

      Expects the session to still need registration This means that you may or may not have a verification code, but that it hasn't already been sent to Whatsapp
      Returns:
      a non-null selector