|
| Client (std::string serverAddr) |
| Constructor for the Client class.
|
|
| Client (const Client &other) |
| Copy constructor for the Client class.
|
|
| Client (Client &&other) noexcept |
| Move constructor for the Client class.
|
|
auto | operator= (const Client &other) -> Client & |
| Copy assignment operator for the Client class.
|
|
auto | operator= (Client &&other) noexcept -> Client & |
| Move assignment operator for the Client class.
|
|
| ~Client () |
| Destructor for the Client class.
|
|
auto | start () noexcept -> bool |
| Starts the client.
|
|
auto | stop () noexcept -> bool |
| Stops the client.
|
|
auto | restart () noexcept -> bool |
| Restarts the client.
|
|
auto | addUser (const std::string &username, const std::string &password) noexcept -> bool |
| Adds a user to the system.
|
|
auto | removeUser (const std::string &username) noexcept -> bool |
| Removes a user from the system.
|
|
auto | isExistUser (const std::string &username) noexcept -> bool |
| Checks if a user exists in the system.
|
|
auto | listAllUsers () -> std::vector< std::string > |
| Gets a list of all users.
|
|
auto | authenticateUser (const std::string &username, const std::string &password) noexcept -> bool |
| Authenticates a user.
|
|
auto | addUserTag (const std::string &username, const std::string &tag) noexcept -> bool |
| Adds a tag to a user.
|
|
auto | removeUserTag (const std::string &username, const std::string &tag) noexcept -> bool |
| Removes a tag from a user.
|
|
auto | getUserTags (const std::string &username) -> std::vector< std::string > |
| Gets the tags of a user.
|
|
auto | sendMessage (const std::string &from, const std::string &to, const std::string &message) noexcept -> bool |
| Sends a message from one user to another.
|
|
auto | getSentMessages (const std::string &username) -> std::vector< std::string > |
| Gets the messages sent by a user.
|
|
auto | getReceivedMessages (const std::string &username) -> std::vector< std::string > |
| Gets the messages received by a user.
|
|
auto | getPair (const std::string &username) -> std::vector< std::string > |
| Gets the pair of a user.
|
|
A class to manage the API gateway operations.