- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
public final class Store
extends Controller<Store>
implements it.auties.protobuf.model.ProtobufMessage
This controller holds the user-related data regarding a WhatsappWeb session
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
The status of the user linked to this account.(package private) boolean
Whether listeners should be automatically scanned and registered or not(package private) boolean
Whether updates about the presence of the session should be sent automatically to Whatsapp For example, when the bot is started, the status of the companion is changed to available if this option is enabled If this option is enabled, the companion will not receive notifications because the bot will instantly read them(package private) String
The address of this account, if it's a business account(package private) BusinessCategory
The category of this account, if it's a business account(package private) String
The description of this account, if it's a business account(package private) String
The email of this account, if it's a business account(package private) Double
The latitude of this account's location, if it's a business account(package private) Double
The longitude of this account's location, if it's a business account(package private) String
The website of this account, if it's a business account(package private) boolean
Whether the listeners that were automatically scanned should be cached(package private) final ConcurrentHashMap
<String, Call> The non-null map of calls(package private) final ConcurrentHashMap
<Jid, Chat> The non-null map of chats(package private) boolean
Whether the mac of every app state request should be checked(package private) final ConcurrentHashMap
<Jid, Contact> The non-null map of contacts(package private) CompanionDevice
Metadata about the device that is being simulated for Whatsapp(package private) String
The hash of the companion associated with this session(package private) WebHistoryLength
Describes how much chat history Whatsapp should send(package private) final long
The timestampSeconds in seconds for the initialization of this object(package private) Jid
The user linked to this account.(package private) Jid
The lid user linked to this account.(package private) LinkedHashMap
<Jid, Integer> A map of all the devices that the companion has associated using WhatsappWeb The key here is the index of the device's key The value is the device's companion jid(package private) final ConcurrentHashMap.KeySetView
<Listener, Boolean> The non-null list of listeners(package private) CountryLocale
The locale of the user linked to this account(package private) MediaConnection
The media connection associated with this store(package private) final CountDownLatch
The media connection latch associated with this store(package private) String
The name of the user linked to this account.(package private) ChatEphemeralTimer
The request tag, used to create messages(package private) final ConcurrentHashMap
<Jid, Newsletter> The non-null map of newsletters(package private) boolean
Whether this account is online for other users(package private) final ConcurrentHashMap
<String, PrivacySettingEntry> The non-null map of privacy settings(package private) URI
The profile picture of the user linked to this account.(package private) final ConcurrentHashMap
<String, String> The non-null map of properties received by whatsapp(package private) URI
The version used by this session(package private) UserAgent.ReleaseChannel
The release channel to use when connecting to Whatsapp This should allow the use of beta features(package private) final ConcurrentHashMap
<String, CompletableFuture<ChatMessageInfo>> The non-null list of replies waiting to be fulfilled(package private) final ConcurrentHashMap
<String, it.auties.whatsapp.socket.SocketRequest> The non-null list of requests that were sent to Whatsapp.(package private) final ConcurrentHashMap.KeySetView
<ChatMessageInfo, Boolean> The non-null list of status messages(package private) final String
The request tag, used to create messages(package private) TextPreviewSetting
The setting to use when generating previews for text messages that contain links(package private) boolean
Whether the twenty-hours format is being used by the client(package private) boolean
Whether chats should be unarchived if a new message arrives(package private) String
The name of the user linked to this account.(package private) FutureReference
<Version> The version used by this sessionFields inherited from class it.auties.whatsapp.controller.Controller
alias, clientType, serializer, uuid
-
Constructor Summary
ConstructorsConstructorDescriptionStore
(UUID uuid, PhoneNumber phoneNumber, ClientType clientType, Collection<String> alias, URI proxy, FutureReference<Version> version, boolean online, CountryLocale locale, String name, String verifiedName, String businessAddress, Double businessLongitude, Double businessLatitude, String businessDescription, String businessWebsite, String businessEmail, BusinessCategory businessCategory, String deviceHash, LinkedHashMap<Jid, Integer> linkedDevicesKeys, URI profilePicture, String about, Jid jid, Jid lid, ConcurrentHashMap<String, String> properties, ConcurrentHashMap<Jid, Contact> contacts, ConcurrentHashMap.KeySetView<ChatMessageInfo, Boolean> status, ConcurrentHashMap<String, PrivacySettingEntry> privacySettings, ConcurrentHashMap<String, Call> calls, boolean unarchiveChats, boolean twentyFourHourFormat, Long initializationTimeStamp, ChatEphemeralTimer newChatsEphemeralTimer, TextPreviewSetting textPreviewSetting, WebHistoryLength historyLength, Boolean autodetectListeners, Boolean cacheDetectedListeners, Boolean automaticPresenceUpdates, UserAgent.ReleaseChannel releaseChannel, CompanionDevice device, boolean checkPatchMacs) All args constructor -
Method Summary
Modifier and TypeMethodDescriptionabout()
Adds a call to the storeAdds a chat in memoryaddChatDirect
(Chat chat) Adds a chat in memory without executing any checkaddContact
(Contact contact) Adds a contact in memoryaddContact
(Jid jid) Adds a contact in memoryaddLinkedDevice
(Jid companion, int keyId) Registers a new companion Only use this method in the mobile apiaddListener
(Listener listener) Registers a listeneraddListeners
(Collection<Listener> listeners) Registers a collection of listenersaddNewChat
(Jid chatJid) Adds a chat in memoryaddNewsletter
(Newsletter newsletter) Adds a newsletter in memoryaddPendingReply
(String messageId) Adds a replay handler to this storeaddPrivacySetting
(PrivacySettingType type, PrivacySettingEntry entry) Sets the privacy setting entry for a typevoid
addProperties
(Map<String, String> properties) addRequest
(it.auties.whatsapp.socket.SocketRequest request) Adds a request to this storeaddStatus
(ChatMessageInfo info) Adds a status to this storeboolean
boolean
Returns all the blocked contactsThe address of this account, if it's a business accountThe category of this account, if it's a business accountThe description of this account, if it's a business accountThe email of this account, if it's a business accountThe latitude of this account's location, if it's a business accountThe longitude of this account's location, if it's a business accountThe website of this account, if it's a business accountboolean
calls()
chats()
Returns all the chats sorted from newest to oldestboolean
contacts()
Returns all the contactsprivate it.auties.whatsapp.socket.SocketRequest
deleteAndComplete
(it.auties.whatsapp.socket.SocketRequest request, Node response, boolean exceptionally) device()
void
dispose()
Disposes this objectfindCallById
(String callId) Finds a call by idfindChatBy
(Function<Chat, Boolean> function) Queries the first chat that matches the provided functionfindChatByJid
(JidProvider jid) Queries the first chat whose jid is equal tojid
findChatByName
(String name) Queries the first chat whose name is equal toname
findChatsBy
(Function<Chat, Boolean> function) Queries the first chat that matches the provided functionfindChatsByName
(String name) Queries every chat whose name is equal toname
findChatsByNameStream
(String name) Queries the first contact whose jid is equal tojid
findContactByName
(String name) Queries the first contact whose name is equal toname
findContactsByName
(String name) Queries every contact whose name is equal toname
findContactsStream
(String name) findMessageById
(Chat chat, String id) Queries the first message whose id matches the one provided in the specified chatOptional
<? extends MessageStatusInfo<?>> findMessageById
(JidProvider provider, String id) Queries the first message whose id matches the one provided in the specified chat or newsletterfindMessageById
(Newsletter newsletter, String id) Queries the first message whose id matches the one provided in the specified newsletterQueries the first message whose id matches the one provided in the specified chatfindNewsletterBy
(Function<Newsletter, Boolean> function) Queries the first newsletter that matches the provided functionQueries the first newsletter whose jid is equal tojid
findNewsletterByName
(String name) Queries the first newsletter whose name is equal toname
findNewslettersByName
(String name) Queries every newsletter whose name is equal toname
private Stream
<Newsletter> Optional
<it.auties.whatsapp.socket.SocketRequest> Queries the first request whose id is equal toid
Queries the privacy setting entry for the typeQueries all the status of a contactlong
jid()
private void
joinMessages
(Chat chat, Chat oldChat) lid()
Returns an unmodifiable list that contains the devices associated using Whatsapp web to this session's companionReturns an unmodifiable map that contains every companion associated using Whatsapp web mapped to its key indexReturns an immutable collection of listenerslocale()
The media connection associated with this storemediaConnection
(Duration timeout) The media connection associated with this storename()
Returns all the newslettersstatic Store
newStore
(UUID uuid, Long phoneNumber, Collection<String> alias, ClientType clientType) boolean
online()
Collection
<it.auties.whatsapp.socket.SocketRequest> Returns an immutable collection of pending requestsReturns the chats pinned to the top sorted new to oldQueries all the privacy settingsReturns the profile picture of this user if presentReturns the non-null map of properties received by whatsappproxy()
Returns the proxy used by this sessionremoveChat
(JidProvider chatJid) Removes a chat from memoryremoveContact
(JidProvider contactJid) Removes a contact from memoryremoveLinkedCompanion
(Jid companion) Removes a companion Only use this method in the mobile apivoid
Removes all linked companionRemoves all listenersremoveListener
(Listener listener) Removes a listenerremoveNewsletter
(JidProvider newsletterJid) Removes a newsletter from memoryvoid
Clears all the data that this object holds and closes the pending requestsboolean
resolvePendingReply
(ChatMessageInfo response) Queries the first reply waiting and completes it with the input messageboolean
resolvePendingRequest
(Node response, boolean exceptionally) Queries the first request whose id equals the one stored by the newsletters and, if any is found, it completes itvoid
serialize
(boolean async) Serializes this objectsetAutodetectListeners
(boolean autodetectListeners) setAutomaticPresenceUpdates
(boolean automaticPresenceUpdates) setBusinessAddress
(String businessAddress) setBusinessCategory
(BusinessCategory businessCategory) setBusinessDescription
(String businessDescription) setBusinessEmail
(String businessEmail) setBusinessLatitude
(Double businessLatitude) setBusinessLongitude
(Double businessLongitude) setBusinessWebsite
(String businessWebsite) void
setCacheDetectedListeners
(boolean cacheDetectedListeners) setCheckPatchMacs
(boolean checkPatchMacs) setDevice
(CompanionDevice device) setDeviceHash
(String deviceHash) setHistoryLength
(WebHistoryLength historyLength) setLinkedDevicesKeys
(LinkedHashMap<Jid, Integer> linkedDevicesKeys) setLocale
(CountryLocale locale) setMediaConnection
(MediaConnection mediaConnection) Writes a media connectionsetNewChatsEphemeralTimer
(ChatEphemeralTimer newChatsEphemeralTimer) setOnline
(boolean online) setProfilePicture
(URI profilePicture) Sets the proxy used by this sessionsetReleaseChannel
(UserAgent.ReleaseChannel releaseChannel) setTextPreviewSetting
(TextPreviewSetting textPreviewSetting) setTwentyFourHourFormat
(boolean twentyFourHourFormat) setUnarchiveChats
(boolean unarchiveChats) setVerifiedName
(String verifiedName) setVersion
(Version version) Returns all the starred messagesstatus()
Returns all the statustag()
boolean
boolean
version()
Methods inherited from class it.auties.whatsapp.controller.Controller
addAlias, alias, clientType, deleteSession, phoneNumber, removeAlias, removeAlias, serializer, setPhoneNumber, setSerializer, toJson, uuid
-
Field Details
-
proxy
URI proxyThe version used by this session -
version
FutureReference<Version> versionThe version used by this session -
online
boolean onlineWhether this account is online for other users -
locale
CountryLocale localeThe locale of the user linked to this account -
name
String nameThe name of the user linked to this account. This field will be null while the user hasn't logged in yet. Assumed to be non-null otherwise. -
verifiedName
String verifiedNameThe name of the user linked to this account. This field will be null while the user hasn't logged in yet. Assumed to be non-null otherwise. -
businessAddress
String businessAddressThe address of this account, if it's a business account -
businessLongitude
Double businessLongitudeThe longitude of this account's location, if it's a business account -
businessLatitude
Double businessLatitudeThe latitude of this account's location, if it's a business account -
businessDescription
String businessDescriptionThe description of this account, if it's a business account -
businessWebsite
String businessWebsiteThe website of this account, if it's a business account -
businessEmail
String businessEmailThe email of this account, if it's a business account -
businessCategory
BusinessCategory businessCategoryThe category of this account, if it's a business account -
deviceHash
String deviceHashThe hash of the companion associated with this session -
linkedDevicesKeys
LinkedHashMap<Jid,Integer> linkedDevicesKeysA map of all the devices that the companion has associated using WhatsappWeb The key here is the index of the device's key The value is the device's companion jid -
profilePicture
URI profilePictureThe profile picture of the user linked to this account. This field will be null while the user hasn't logged in yet. This field can also be null if no image was set. -
about
String aboutThe status of the user linked to this account. This field will be null while the user hasn't logged in yet. Assumed to be non-null otherwise. -
jid
Jid jidThe user linked to this account. This field will be null while the user hasn't logged in yet. -
lid
Jid lidThe lid user linked to this account. This field will be null while the user hasn't logged in yet. -
properties
The non-null map of properties received by whatsapp -
chats
The non-null map of chats -
contacts
The non-null map of contacts -
status
The non-null list of status messages -
newsletters
The non-null map of newsletters -
privacySettings
The non-null map of privacy settings -
calls
The non-null map of calls -
unarchiveChats
boolean unarchiveChatsWhether chats should be unarchived if a new message arrives -
twentyFourHourFormat
boolean twentyFourHourFormatWhether the twenty-hours format is being used by the client -
requests
The non-null list of requests that were sent to Whatsapp. They might or might not be waiting for a newsletters -
replyHandlers
The non-null list of replies waiting to be fulfilled -
listeners
The non-null list of listeners -
tag
The request tag, used to create messages -
initializationTimeStamp
final long initializationTimeStampThe timestampSeconds in seconds for the initialization of this object -
mediaConnection
MediaConnection mediaConnectionThe media connection associated with this store -
mediaConnectionLatch
The media connection latch associated with this store -
newChatsEphemeralTimer
ChatEphemeralTimer newChatsEphemeralTimerThe request tag, used to create messages -
textPreviewSetting
TextPreviewSetting textPreviewSettingThe setting to use when generating previews for text messages that contain links -
historyLength
WebHistoryLength historyLengthDescribes how much chat history Whatsapp should send -
autodetectListeners
boolean autodetectListenersWhether listeners should be automatically scanned and registered or not -
cacheDetectedListeners
boolean cacheDetectedListenersWhether the listeners that were automatically scanned should be cached -
automaticPresenceUpdates
boolean automaticPresenceUpdatesWhether updates about the presence of the session should be sent automatically to Whatsapp For example, when the bot is started, the status of the companion is changed to available if this option is enabled If this option is enabled, the companion will not receive notifications because the bot will instantly read them -
releaseChannel
UserAgent.ReleaseChannel releaseChannelThe release channel to use when connecting to Whatsapp This should allow the use of beta features -
device
CompanionDevice deviceMetadata about the device that is being simulated for Whatsapp -
checkPatchMacs
boolean checkPatchMacsWhether the mac of every app state request should be checked
-
-
Constructor Details
-
Store
public Store(UUID uuid, PhoneNumber phoneNumber, ClientType clientType, Collection<String> alias, URI proxy, FutureReference<Version> version, boolean online, CountryLocale locale, String name, String verifiedName, String businessAddress, Double businessLongitude, Double businessLatitude, String businessDescription, String businessWebsite, String businessEmail, BusinessCategory businessCategory, String deviceHash, LinkedHashMap<Jid, Integer> linkedDevicesKeys, URI profilePicture, String about, Jid jid, Jid lid, ConcurrentHashMap<String, String> properties, ConcurrentHashMap<Jid, Contact> contacts, ConcurrentHashMap.KeySetView<ChatMessageInfo, Boolean> status, ConcurrentHashMap<String, PrivacySettingEntry> privacySettings, ConcurrentHashMap<String, Call> calls, boolean unarchiveChats, boolean twentyFourHourFormat, Long initializationTimeStamp, ChatEphemeralTimer newChatsEphemeralTimer, TextPreviewSetting textPreviewSetting, WebHistoryLength historyLength, Boolean autodetectListeners, Boolean cacheDetectedListeners, Boolean automaticPresenceUpdates, UserAgent.ReleaseChannel releaseChannel, CompanionDevice device, boolean checkPatchMacs) All args constructor
-
-
Method Details
-
newStore
public static Store newStore(UUID uuid, Long phoneNumber, Collection<String> alias, ClientType clientType) -
findContactByJid
Queries the first contact whose jid is equal tojid
- Parameters:
jid
- the jid to search- Returns:
- a non-null optional
-
findContactByName
Queries the first contact whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null optional
-
findContactsStream
-
contacts
Returns all the contacts- Returns:
- an immutable collection
-
findContactsByName
Queries every contact whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null immutable set
-
findMessageByKey
Queries the first message whose id matches the one provided in the specified chat- Parameters:
key
- the key to search- Returns:
- a non-null optional
-
findMessageById
Queries the first message whose id matches the one provided in the specified chat or newsletter- Parameters:
provider
- the chat to search inid
- the jid to search- Returns:
- a non-null optional
-
findMessageById
Queries the first message whose id matches the one provided in the specified newsletter- Parameters:
newsletter
- newsletter chat to search inid
- the jid to search- Returns:
- a non-null optional
-
findMessageById
Queries the first message whose id matches the one provided in the specified chat- Parameters:
chat
- the chat to search inid
- the jid to search- Returns:
- a non-null optional
-
findChatByJid
Queries the first chat whose jid is equal tojid
- Parameters:
jid
- the jid to search- Returns:
- a non-null optional
-
findNewsletterByJid
Queries the first newsletter whose jid is equal tojid
- Parameters:
jid
- the jid to search- Returns:
- a non-null optional
-
findChatByName
Queries the first chat whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null optional
-
findNewsletterByName
Queries the first newsletter whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null optional
-
findChatsByNameStream
-
findNewslettersByNameStream
-
findChatBy
Queries the first chat that matches the provided function- Parameters:
function
- the non-null filter- Returns:
- a non-null optional
-
findNewsletterBy
Queries the first newsletter that matches the provided function- Parameters:
function
- the non-null filter- Returns:
- a non-null optional
-
findChatsByName
Queries every chat whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null immutable set
-
findNewslettersByName
Queries every newsletter whose name is equal toname
- Parameters:
name
- the name to search- Returns:
- a non-null immutable set
-
findChatsBy
Queries the first chat that matches the provided function- Parameters:
function
- the non-null filter- Returns:
- a non-null optional
-
status
Returns all the status- Returns:
- an immutable collection
-
newsletters
Returns all the newsletters- Returns:
- an immutable collection
-
findStatusBySender
Queries all the status of a contact- Parameters:
jid
- the sender of the status- Returns:
- a non-null immutable list
-
resolvePendingRequest
Queries the first request whose id equals the one stored by the newsletters and, if any is found, it completes it- Parameters:
response
- the newsletters to complete the request withexceptionally
- whether the newsletters is erroneous- Returns:
- a boolean
-
findPendingRequest
Queries the first request whose id is equal toid
- Parameters:
id
- the id to search, can be null- Returns:
- a non-null optional
-
deleteAndComplete
private it.auties.whatsapp.socket.SocketRequest deleteAndComplete(it.auties.whatsapp.socket.SocketRequest request, Node response, boolean exceptionally) -
resolveAllPendingRequests
public void resolveAllPendingRequests()Clears all the data that this object holds and closes the pending requests -
pendingRequests
Returns an immutable collection of pending requests- Returns:
- a non-null collection
-
resolvePendingReply
Queries the first reply waiting and completes it with the input message- Parameters:
response
- the newsletters to complete the reply with- Returns:
- a boolean
-
addNewChat
Adds a chat in memory- Parameters:
chatJid
- the chat to add- Returns:
- the input chat
-
addChat
Adds a chat in memory- Parameters:
chat
- the chat to add- Returns:
- the old chat, if present
-
joinMessages
-
addChatDirect
Adds a chat in memory without executing any check- Parameters:
chat
- the chat to add- Returns:
- the old chat, if present
-
addContact
Adds a contact in memory- Parameters:
jid
- the contact to add- Returns:
- the input contact
-
addContact
Adds a contact in memory- Parameters:
contact
- the contact to add- Returns:
- the input contact
-
addNewsletter
Adds a newsletter in memory- Parameters:
newsletter
- the newsletter to add- Returns:
- the old newsletter, if present
-
removeChat
Removes a chat from memory- Parameters:
chatJid
- the chat to remove- Returns:
- the chat that was deleted wrapped by an optional
-
removeNewsletter
Removes a newsletter from memory- Parameters:
newsletterJid
- the newsletter to remove- Returns:
- the newsletter that was deleted wrapped by an optional
-
removeContact
Removes a contact from memory- Parameters:
contactJid
- the contact to remove- Returns:
- the contact that was deleted wrapped by an optional
-
pinnedChats
Returns the chats pinned to the top sorted new to old- Returns:
- a non-null list of chats
-
starredMessages
Returns all the starred messages- Returns:
- a non-null list of messages
-
chats
Returns all the chats sorted from newest to oldest- Returns:
- an immutable collection
-
properties
Returns the non-null map of properties received by whatsapp- Returns:
- an unmodifiable map
-
addProperties
-
mediaConnection
The media connection associated with this store- Returns:
- the media connection
-
mediaConnection
The media connection associated with this store- Parameters:
timeout
- the non-null timeout for the connection to be filled- Returns:
- the media connection
-
setMediaConnection
Writes a media connection- Parameters:
mediaConnection
- a media connection- Returns:
- the same instance
-
blockedContacts
Returns all the blocked contacts- Returns:
- an immutable collection
-
addStatus
Adds a status to this store- Parameters:
info
- the non-null status to add- Returns:
- the same instance
-
addRequest
Adds a request to this store- Parameters:
request
- the non-null request to add- Returns:
- the non-null completable newsletters of the request
-
addPendingReply
Adds a replay handler to this store- Parameters:
messageId
- the non-null message id to listen for- Returns:
- the non-null completable newsletters of the reply handler
-
profilePicture
Returns the profile picture of this user if present- Returns:
- an optional uri
-
privacySettings
Queries all the privacy settings- Returns:
- a non-null list
-
findPrivacySetting
Queries the privacy setting entry for the type- Parameters:
type
- a non-null type- Returns:
- a non-null entry
-
addPrivacySetting
Sets the privacy setting entry for a type- Parameters:
type
- a non-null typeentry
- the non-null entry- Returns:
- the old privacy setting entry
-
linkedDevicesKeys
Returns an unmodifiable map that contains every companion associated using Whatsapp web mapped to its key index- Returns:
- an unmodifiable map
-
linkedDevices
Returns an unmodifiable list that contains the devices associated using Whatsapp web to this session's companion- Returns:
- an unmodifiable list
-
addLinkedDevice
Registers a new companion Only use this method in the mobile api- Parameters:
companion
- a non-null companionkeyId
- the id of its key- Returns:
- the nullable old key
-
removeLinkedCompanion
Removes a companion Only use this method in the mobile api- Parameters:
companion
- a non-null companion- Returns:
- the nullable old key
-
removeLinkedCompanions
public void removeLinkedCompanions()Removes all linked companion -
listeners
Returns an immutable collection of listeners- Returns:
- a non-null collection
-
addListener
Registers a listener- Parameters:
listener
- the listener to register- Returns:
- the same instance
-
addListeners
Registers a collection of listeners- Parameters:
listeners
- the listeners to register- Returns:
- the same instance
-
removeListener
Removes a listener- Parameters:
listener
- the listener to remove- Returns:
- the same instance
-
removeListener
Removes all listeners- Returns:
- the same instance
-
setProxy
Sets the proxy used by this session- Returns:
- the same instance
-
proxy
Returns the proxy used by this session- Returns:
- a non-null optional
-
businessAddress
The address of this account, if it's a business account- Returns:
- an optional
-
businessLongitude
The longitude of this account's location, if it's a business account- Returns:
- an optional
-
businessLatitude
The latitude of this account's location, if it's a business account- Returns:
- an optional
-
businessDescription
The description of this account, if it's a business account- Returns:
- an optional
-
businessWebsite
The website of this account, if it's a business account- Returns:
- an optional
-
businessEmail
The email of this account, if it's a business account- Returns:
- an optional
-
businessCategory
The category of this account, if it's a business account- Returns:
- an optional
-
dispose
public void dispose()Description copied from class:Controller
Disposes this object- Specified by:
dispose
in classController<Store>
-
serialize
public void serialize(boolean async) Description copied from class:Controller
Serializes this object- Specified by:
serialize
in classController<Store>
- Parameters:
async
- whether the operation should be executed asynchronously
-
addCall
Adds a call to the store- Parameters:
call
- a non-null call- Returns:
- the old value associated with
Call.id()
-
findCallById
Finds a call by id- Parameters:
callId
- the id of the call, can be null- Returns:
- an optional
-
tag
-
version
-
online
public boolean online() -
locale
-
name
-
deviceHash
-
about
-
jid
-
lid
-
unarchiveChats
public boolean unarchiveChats() -
twentyFourHourFormat
public boolean twentyFourHourFormat() -
initializationTimeStamp
public long initializationTimeStamp() -
newChatsEphemeralTimer
-
textPreviewSetting
-
historyLength
-
autodetectListeners
public boolean autodetectListeners() -
cacheDetectedListeners
public boolean cacheDetectedListeners() -
automaticPresenceUpdates
public boolean automaticPresenceUpdates() -
releaseChannel
-
device
-
checkPatchMacs
public boolean checkPatchMacs() -
calls
-
setOnline
-
setLocale
-
setName
-
setBusinessAddress
-
setBusinessLongitude
-
setBusinessLatitude
-
setBusinessDescription
-
setBusinessWebsite
-
setBusinessEmail
-
setBusinessCategory
-
setDeviceHash
-
setLinkedDevicesKeys
-
setProfilePicture
-
setAbout
-
setJid
-
setLid
-
setUnarchiveChats
-
setTwentyFourHourFormat
-
setNewChatsEphemeralTimer
-
setTextPreviewSetting
-
setHistoryLength
-
setAutodetectListeners
-
setCacheDetectedListeners
public void setCacheDetectedListeners(boolean cacheDetectedListeners) -
setAutomaticPresenceUpdates
-
setReleaseChannel
-
setDevice
-
setCheckPatchMacs
-
setVersion
-
verifiedName
-
setVerifiedName
-