EvEmu
0.8.4
11 September 2021
|
#include "APIServiceDB.h"
Public Member Functions | |
APIServiceDB () | |
bool | GetAccountIdFromUsername (std::string username, std::string *accountID) |
? More... | |
bool | GetAccountIdFromUserID (std::string userID, uint32 *accountID) |
? More... | |
bool | GetApiAccountInfoUsingAccountID (std::string accountID, uint32 *userID, std::string *apiFullKey, std::string *apiLimitedKey, uint32 *apiRole) |
? More... | |
bool | GetApiAccountInfoUsingUserID (std::string userID, std::string *apiFullKey, std::string *apiLimitedKey, uint32 *apiRole) |
? More... | |
bool | UpdateUserIdApiKeyDatabaseRow (uint32 userID, std::string apiFullKey, std::string apiLimitedKey) |
? More... | |
bool | InsertNewUserIdApiKeyInfoToDatabase (uint32 accountID, std::string apiFullKey, std::string apiLimitedKey, uint32 apiRole) |
? More... | |
bool | UpdateUserIdApiRole (uint32 userID, uint32 apiRole) |
? More... | |
Definition at line 29 of file APIServiceDB.h.
APIServiceDB::APIServiceDB | ( | ) |
Definition at line 30 of file APIServiceDB.cpp.
bool APIServiceDB::GetAccountIdFromUserID | ( | std::string | userID, |
uint32 * | accountID | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 60 of file APIServiceDB.cpp.
References DBQueryResult::GetRow(), DBResultRow::GetUInt(), sDatabase, and sLog.
Referenced by APIAccountManager::_AccountStatus(), and APIAccountManager::_Characters().
bool APIServiceDB::GetAccountIdFromUsername | ( | std::string | username, |
std::string * | accountID | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 34 of file APIServiceDB.cpp.
References DBQueryResult::GetRow(), DBResultRow::GetText(), sDatabase, and sLog.
Referenced by APIAccountManager::_APIKeyRequest().
bool APIServiceDB::GetApiAccountInfoUsingAccountID | ( | std::string | accountID, |
uint32 * | userID, | ||
std::string * | apiFullKey, | ||
std::string * | apiLimitedKey, | ||
uint32 * | apiRole | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 86 of file APIServiceDB.cpp.
References DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), sDatabase, and sLog.
Referenced by APIAccountManager::_APIKeyRequest().
bool APIServiceDB::GetApiAccountInfoUsingUserID | ( | std::string | userID, |
std::string * | apiFullKey, | ||
std::string * | apiLimitedKey, | ||
uint32 * | apiRole | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 116 of file APIServiceDB.cpp.
References DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), sDatabase, and sLog.
Referenced by APIServiceManager::_AuthenticateFullAPIQuery(), and APIServiceManager::_AuthenticateLimitedAPIQuery().
bool APIServiceDB::InsertNewUserIdApiKeyInfoToDatabase | ( | uint32 | accountID, |
std::string | apiFullKey, | ||
std::string | apiLimitedKey, | ||
uint32 | apiRole | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 176 of file APIServiceDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.
Referenced by APIAccountManager::_APIKeyRequest().
bool APIServiceDB::UpdateUserIdApiKeyDatabaseRow | ( | uint32 | userID, |
std::string | apiFullKey, | ||
std::string | apiLimitedKey | ||
) |
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 144 of file APIServiceDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.
Referenced by APIAccountManager::_APIKeyRequest().
?
?
[in] | ? | |
[in] | ? |
? |
Definition at line 210 of file APIServiceDB.cpp.
References DBerror::c_str(), sDatabase, and sLog.