STWMessages Api
Functions
Call this method to assign a new member as an admin to the given group conversation
Call this method to close the given group conversation ConversationTypes.GROUP
Call this method to confirm the reception of an acknowledged message.
Call this method to create and send a new conference link for an existing conversation.
Call this method to create a new conversation, The created conversation will be empty.
Call this method to delete an existing message from local Database and server.
Call this method to delete an existing list of messages.
Call this method to enable or disable the message auto deletion task When enabled, set the period of time after which the messages will be deleted permanently in milli seconds, null otherwise
This function retrieves conversations following these rules :
This function retrieves conversations according to the query, contactQuery&mediaFilter based on :
Call this method to forward messages to another existing conversation.
This method does not allow :
- an empty message Id list
- a none existing conversation
Call this method to retrieve list of all administrators of the given conversation (Regular admins and admin initiator) as flow
Call this method to retrieve list of all administrators of the given conversation (Regular admins and admin initiator) as LiveData
Call this method to check whether the messaging feature is allowed or not.
Call this method to retrieve the full company conversations
Call this suspended method to retrieve list of company conversations
Call this method to retrieve the full list of contacts in the conversation
Call this method to retrieve the conversation represented by STWConversation object given a conversationId.
Call this method to retrieve the conversation represented by STWConversation object given a conversationId.
Get the conversation having a specified Id as Flow.
Get the conversation having a specified Id as LiveData.
Call this method to retrieve a one to one conversation from local Database given the recipient represented bySTWContact.
Call this method to retrieve a one to one conversation from local Database given the recipient represented bySTWSingleContact.
Get the list of all conversations (Company conversations and external conversation).
Call this method to retrieve list of conversations by page
Call this method to retrieve the list of company conversations given.
Call this method to retrieve all message deliveries given a message id from local Database and it should be called only from a coroutine or another suspend function
Call this method to retrieve all message deliveries LiveData given a message id and list of states from local Database.
Call this method to retrieve all message deliveries LiveData given a message id from local Database.
Call this method to retrieve the draft message given conversationId from local Database represented by STWBaseMessage.
Call this method to retrieve the external conversations
Call this suspended method to retrieve list of external conversations
Call this method to retrieve recipient groups in the given conversation and it should be called only from a coroutine or another suspend function
Call this method to retrieve recipient groups in the given conversation as Flow
Get the period of time after which the messages will be deleted permanently
Call this method to retrieve the message represented by STWBaseMessage object given a messageId.
Get the message having a specified Id as LiveData.
Call this method to get the message position in the conversation.
Call this method to get the message position in the conversation.
Get the list of messages having the specified conversation Id.
Get the list of messages related to the specified conversation Id.
Call this method to retrieve the number of the related conversations for a given groupId. Means all conversation with only the given groupId as a recipient.
Loading page of conversations related to a specified conversationId.
Loading page of messages related to a specified conversationId.
Call this method to retrieve the list of company conversations given.
Call this method to retrieve list of company conversations
Call this method to retrieve list of external conversations
Call this method to retrieve both single (without admins) and group recipients in the given conversation
Call this method to retrieve both single (without admins) and group recipients in the given conversation
Call this method to retrieve both single (without admins) and group recipients in the given conversation
Call this method to retrieve list of regular administrator in group conversation and it should be called only from a coroutine or another suspend function
Call this method to retrieve single recipients in the given conversation and it should be called only from a coroutine or another suspend function
Call this method to retrieve single recipients in the given conversation as Flow
Call this method to retrieve single recipients in the given conversation as LiveData
Call this method to get the number of unread conversations.
Call this method to add, update or remove drafts in conversations from local database.
Call this method to invite new participants (users and/or groups) to the conversation.
Call this method to check whether the message acknowledgement feature is enabled or not.
Call this method to check whether the seen message feature is enabled from user settings or not.
Call this method to mark all messages of the conversation as read and synced with back-end.
Call this method to remove a regular admin from the current group conversation, means the adminPhoneNumber will be a simple member
Call this method to remove a group from a group conversation.
Call this method to remove a user from a group conversation.
Call this method to resend a failed message.
Call this method to retrieve the list of all conversations.
Call this method to retrieve the list of all conversations.
Call this method to search for a list of company conversations by content.
Call this method to retrieve the list of company conversations.
Call this method to retrieve the list of company conversations.
This function retrieves conversations following these rules :
Call this method to retrieve the list of company conversations given.
Call this method to retrieve the list of company conversations given.
Call this method to search for a list of external conversations by content.
Call this method to retrieve the list of external conversations.
Call this method to retrieve the list of external conversations.
Call this method to search for a list of external conversations by content.
This function retrieves conversations according to the query, contactQuery&mediaFilter based on :
Call this method to search for a list of company conversations by content.
Call this method to send a new message/attachment for an existing conversation.
Inherited functions
Subscribes to the specific eventTypes of the client.
Subscribes to the specific eventTypes of the client, in the lifecycle of lifecycleOwner.
Subscribes to the specific eventTypes of the client with additional filter.
Subscribes to the specific eventTypes of the client with additional filter, in the lifecycle of lifecycleOwner.
Subscribes for the next event with the given eventType.