Module it.auties.cobalt
Package it.auties.whatsapp.api
Class MobileRegistrationBuilder<T extends MobileRegistrationBuilder<T>>
java.lang.Object
it.auties.whatsapp.api.MobileRegistrationBuilder<T>
- Direct Known Subclasses:
MobileRegistrationBuilder.Unregistered,MobileRegistrationBuilder.Unverified
public sealed class MobileRegistrationBuilder<T extends MobileRegistrationBuilder<T>>
extends Object
permits MobileRegistrationBuilder.Unverified, MobileRegistrationBuilder.Unregistered
A builder to specify the options for the mobile api
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ErrorHandler(package private) final Keys(package private) final ExecutorService(package private) final Store(package private) AsyncVerificationCodeSupplier(package private) Whatsapp -
Constructor Summary
ConstructorsConstructorDescriptionMobileRegistrationBuilder(Store store, Keys keys, ErrorHandler errorHandler, ExecutorService socketExecutor) -
Method Summary
Modifier and TypeMethodDescription(package private) WhatsappverificationCodeSupplier(AsyncVerificationCodeSupplier verificationCodeSupplier) Sets the handler that provides the verification code when verifying an accountverificationCodeSupplier(Supplier<String> verificationCodeSupplier) Sets the handler that provides the verification code when verifying an account
-
Field Details
-
store
-
keys
-
errorHandler
-
socketExecutor
-
whatsapp
Whatsapp whatsapp -
verificationCodeSupplier
AsyncVerificationCodeSupplier verificationCodeSupplier
-
-
Constructor Details
-
MobileRegistrationBuilder
MobileRegistrationBuilder(Store store, Keys keys, ErrorHandler errorHandler, ExecutorService socketExecutor)
-
-
Method Details
-
verificationCodeSupplier
Sets the handler that provides the verification code when verifying an account- Parameters:
verificationCodeSupplier- the non-null supplier- Returns:
- the same instance
-
verificationCodeSupplier
Sets the handler that provides the verification code when verifying an account- Parameters:
verificationCodeSupplier- the non-null supplier- Returns:
- the same instance
-
buildWhatsapp
Whatsapp buildWhatsapp()
-