![]() |
CloudBuilder C++ SDK
v3.0.0
Making social games is easy !
|
Functions | |
void | CloudBuilder::CUserManager::Balance (const char *aDomain, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::TxHistory (const char *aDomain, const CotCHelpers::CHJSON *aJSONOptions, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::GetValue (const CotCHelpers::CHJSON *aConfiguration, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::SetValue (const CotCHelpers::CHJSON *aConfiguration, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::DeleteValue (const CotCHelpers::CHJSON *aConfiguration, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::GetBinary (const CotCHelpers::CHJSON *aConfiguration, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::SetBinary (const CotCHelpers::CHJSON *aConfiguration, const void *aPointer, size_t aSize, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::DeleteBinary (const CotCHelpers::CHJSON *aConfiguration, CResultHandler *aHandler) |
void CloudBuilder::CUserManager::Balance | ( | const char * | aDomain, |
CResultHandler * | aHandler | ||
) |
Method to retrieve the user's balance.
aDomain | the domains on which action must be taken. NULL is used for "private", which means it can only be accessed from this game. |
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::DeleteBinary | ( | const CotCHelpers::CHJSON * | aConfiguration, |
CResultHandler * | aHandler | ||
) |
Method to remove data pointed by a single key.
aConfiguration | JSON allowing for extensible configuration, that may contain:
|
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::DeleteValue | ( | const CotCHelpers::CHJSON * | aConfiguration, |
CResultHandler * | aHandler | ||
) |
Method to delete a single key of the global JSON object stored for this user and domain.
aConfiguration | is a JSON configuration, that may contain
|
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::GetBinary | ( | const CotCHelpers::CHJSON * | aConfiguration, |
CResultHandler * | aHandler | ||
) |
Method to read a single key containing binary data stored for this user and this domain.
aConfiguration | JSON allowing for extensible configuration, that may contain:
|
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::GetValue | ( | const CotCHelpers::CHJSON * | aConfiguration, |
CResultHandler * | aHandler | ||
) |
Method to read a single key of the global JSON object stored for this user and this domain.
aConfiguration | is a JSON configuration, that may contain
|
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::SetBinary | ( | const CotCHelpers::CHJSON * | aConfiguration, |
const void * | aPointer, | ||
size_t | aSize, | ||
CResultHandler * | aHandler | ||
) |
Method to insert or modify a single key represented by binary data Please note that if you have used KeyValueWrite with a key you reuse in BinaryWrite, you will lose your initial JSON data.
aConfiguration | JSON allowing for extensible configuration, that may contain:
|
aPointer | is the binary array you want to save. |
aSize | is the size of the binary array, in bytes. |
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::SetValue | ( | const CotCHelpers::CHJSON * | aConfiguration, |
CResultHandler * | aHandler | ||
) |
Method to insert a key or modify the global JSON object stored for this user and this domain. Please note that if you have used BinaryWrite with a key you reuse in KeyValueWrite, you will lose your initial binary data.
aConfiguration | JSON allowing for extensible configuration, that may contain:
|
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::TxHistory | ( | const char * | aDomain, |
const CotCHelpers::CHJSON * | aJSONOptions, | ||
CResultHandler * | aHandler | ||
) |
Method to retreive the history of transactions for this user.
aDomain | the domains on which action must be taken. NULL is used for "private", which means it can only be accessed from this game. |
aJSONOptions | specify skip and limit and/or the currency for the history, if empty returns all the transactions. i.e. { "unit" : "Gold", "skip": 10, "limit" : 10} |
aHandler | result handler whenever the call finishes (it might also be synchronous) |