java.lang.Object
it.auties.whatsapp.api.OptionsBuilder<MobileOptionsBuilder>
it.auties.whatsapp.api.MobileOptionsBuilder
-
Field Summary
Fields inherited from class it.auties.whatsapp.api.OptionsBuilder
errorHandler, keys, socketExecutor, store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessAddress(String businessAddress) Sets the business' addressbusinessCategory(BusinessCategory businessCategory) Sets the business' categorybusinessDescription(String businessDescription) Sets the business' descriptionbusinessEmail(String businessEmail) Sets the business' emailbusinessLatitude(Double businessLatitude) Sets the business' address latitudebusinessLongitude(Double businessLongitude) Sets the business' address longitudebusinessWebsite(String businessWebsite) Sets the business' websitedevice(CompanionDevice device) Set the device to emulateExpects 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 thrownExpects 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 WhatsappExpects the session to still need verification This means that you already have a code, but it hasn't already been sent to WhatsappMethods inherited from class it.auties.whatsapp.api.OptionsBuilder
autodetectListeners, automaticPresenceUpdates, checkPatchMacks, errorHandler, name, proxy, releaseChannel, socketExecutor, textPreviewSetting, version
-
Constructor Details
-
MobileOptionsBuilder
-
-
Method Details
-
device
Set the device to emulate- Returns:
- the same instance for chaining
-
businessAddress
Sets the business' address- Returns:
- the same instance for chaining
-
businessLongitude
Sets the business' address longitude- Returns:
- the same instance for chaining
-
businessLatitude
Sets the business' address latitude- Returns:
- the same instance for chaining
-
businessDescription
Sets the business' description- Returns:
- the same instance for chaining
-
businessWebsite
Sets the business' website- Returns:
- the same instance for chaining
-
businessEmail
Sets the business' email- Returns:
- the same instance for chaining
-
businessCategory
Sets the business' category- Returns:
- the same instance for chaining
-
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
-