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
keys, store
-
Constructor Summary
ConstructorsConstructorDescriptionMobileOptionsBuilder
(long phoneNumber, ControllerSerializer serializer, ConnectionType connectionType) MobileOptionsBuilder
(UUID connectionUuid, ControllerSerializer serializer, ConnectionType connectionType) -
Method Summary
Modifier and TypeMethodDescriptionbusiness
(boolean business) Set whether the registered account is a business accountmanufacturer
(@NonNull String manufacturer) Set the manufacturer of the associated companionSet the model of the associated companionprivate MobileOptionsBuilder
osType
(@NonNull UserAgent.UserAgentPlatform osType) Set the operating system of the associated companionSet the operating system's version of the associated companionExpects 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, errorHandler, name, proxy, releaseChannel, socketExecutor, textPreviewSetting, version
-
Constructor Details
-
MobileOptionsBuilder
public MobileOptionsBuilder(UUID connectionUuid, ControllerSerializer serializer, ConnectionType connectionType) -
MobileOptionsBuilder
public MobileOptionsBuilder(long phoneNumber, ControllerSerializer serializer, ConnectionType connectionType)
-
-
Method Details
-
osType
Set the operating system of the associated companion- Returns:
- the same instance for chaining
-
osVersion
Set the operating system's version of the associated companion- Returns:
- the same instance for chaining
-
model
Set the model of the associated companion- Returns:
- the same instance for chaining
-
manufacturer
Set the manufacturer of the associated companion- Returns:
- the same instance for chaining
-
business
Set whether the registered account is a business account- 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 selector
- Throws:
IllegalStateException
- if the session is not registered
-
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
-
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
-