![]() |
Banking_System_Server
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
The GetTransactionsHistoryRequest class handles the retrieval of transaction history. More...
#include <GetTransactionsHistoryRequest.h>
Public Member Functions | |
GetTransactionsHistoryRequest () | |
Constructor for the GetTransactionsHistoryRequest class. More... | |
QJsonObject | execute (const QJsonObject &jsonObj, QMutex &m) override |
Executes the request to get the transaction history. More... | |
![]() | |
virtual | ~Request () |
Virtual destructor for the Request class. More... | |
Additional Inherited Members | |
![]() | |
bool | isDBConnectionValid (DB::DatabaseManager *dbManager) |
Checks if the database connection is valid. More... | |
QJsonObject | CreateDBConnectionError (QJsonObject &response, QJsonObject &dataObj) |
Creates a JSON response indicating a database connection error. More... | |
QJsonObject | CreateErrorResponse (QJsonObject &response, QJsonObject &dataObj, QString message) |
Creates a generic error JSON response. More... | |
The GetTransactionsHistoryRequest class handles the retrieval of transaction history.
This class processes requests to retrieve transaction history for a user or an admin. It performs database operations and returns the transaction details.
|
inline |
Constructor for the GetTransactionsHistoryRequest class.
Initializes the DatabaseManager instance for handling database operations.
|
inlineoverridevirtual |
Executes the request to get the transaction history.
This method processes the JSON request to retrieve transaction history for a user or admin. It validates the input data, checks the database connection, and fetches the data from the database.
jsonObj | The JSON object containing the request data. |
m | The mutex to lock during the execution. |
Implements Request.