Package-level declarations
Types
This use case is responsible for clearing the client data. The proteus client will be cleared and the MLS client will be cleared.
Clear all NewClients for the UserId from the BD. Use it after informing user about NewClients, or when user logs out.
Retrieves the Proteus-specific fingerprint of a client. If no session exists for the client, a new session is established.
This use case is responsible for deleting the client. The client will be deleted from the backend and the local storage.
Fetches the list of clients of the current user from remote.
Use case to get the other users clients (devices) from remote and save it in our local db so it can be fetched later
This use case is responsible for getting the client. If the client is not found, it will be registered.
Use case to get fingerprint of current user client (device). Only applies to proteus devices.
Answers the question if the self user allowed to register an MLS client
MLSClientManager is responsible for registering an MLS client when a user upgrades to an MLS supported build.
This use case will return true if the current user needs to register a client.
This use case will return the details of a client.
Use case to fetch all the other user clients (devices) information from the local db for specific user
This use case will observe and return the current client id of the current user.
Observes new Clients for all the users that are logged in on device returns NewClientResult which may be: NewClientResult.InCurrentAccount if new Clients appears for the user that is currently used. NewClientResult.InOtherAccount if new Clients appears for the user that is logged in on device, but not currently used. NewClientResult.Empty if there are no new Clients for any of the logged-in Users. NewClientResult.Error in case of error, in most cases it means that the user for which new Client appeared is no longer logged it on the device.
This use case is responsible for registering the client. The client will be registered on the backend and the local storage.
Register an MLS client with an existing client already registered on the backend.
Updates the verification status of a client.
Checks if the given client is still exists on the backend, otherwise returns failure.