![]() |
CloudBuilder
2.8.4
Making social games is easy !
|
Functions | |
void | CloudBuilder::CUserManager::UserExist (const char *aIdent, const char *aNetwork, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::MailPassword (const CotCHelpers::CHJSON *aJSON, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::ChangePassword (const char *aNewPassword, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::ChangeEmail (const char *aNewEmail, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::SetProfile (const CotCHelpers::CHJSON *aJson, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::GetProfile (CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::SetProperties (CResultHandler *aHandler, const CotCHelpers::CHJSON *aPropertiesList, const char *aDomain="private") |
DEPRECATED void | CloudBuilder::CUserManager::SetProperties (const CotCHelpers::CHJSON *aPropertiesList, CResultHandler *aHandler) |
void | CloudBuilder::CUserManager::GetProperties (CResultHandler *aHandler, const char *aDomain="private") |
void | CloudBuilder::CUserManager::SetProperty (CResultHandler *aHandler, const CotCHelpers::CHJSON *aProperty, const char *aDomain="private") |
void | CloudBuilder::CUserManager::GetProperty (CResultHandler *aHandler, const char *aField, const char *aDomain="private") |
void | CloudBuilder::CUserManager::DeleteProperty (CResultHandler *aHandler, const char *aField, const char *aDomain="private") |
void CloudBuilder::CUserManager::ChangeEmail | ( | const char * | aNewEmail, |
CResultHandler * | aHandler | ||
) |
Once logged, the user registered with 'email' network can change his/her email.
aNewEmail | the new email |
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::ChangePassword | ( | const char * | aNewPassword, |
CResultHandler * | aHandler | ||
) |
Once logged, the user registered with 'email' network can change his/her paswword.
aNewPassword | the new password |
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::DeleteProperty | ( | CResultHandler * | aHandler, |
const char * | aField, | ||
const char * | aDomain = "private" |
||
) |
Method to delete a single property of the global JSON object stored for this user and domain.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
aField | the key to delete |
aDomain | is the domain in which this property has to be deleted. "private" means it is valid only for this game. |
void CloudBuilder::CUserManager::GetProfile | ( | CResultHandler * | aHandler | ) |
Method used to retrieve some optional data of the logged in profile previously set by method SetProfile.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::GetProperties | ( | CResultHandler * | aHandler, |
const char * | aDomain = "private" |
||
) |
Method to get the list of previously saved properties used to find opponents for a match.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
aDomain | is the domain in which the properties have to be loaded. "private" means they are valid only for this game. |
void CloudBuilder::CUserManager::GetProperty | ( | CResultHandler * | aHandler, |
const char * | aField, | ||
const char * | aDomain = "private" |
||
) |
Method to get the list of previously saved properties used to find opponents for a match.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
aField | the key to retreive |
aDomain | is the domain in which this property has to be loaded. "private" means it is valid only for this game. |
void CloudBuilder::CUserManager::MailPassword | ( | const CotCHelpers::CHJSON * | aJSON, |
CResultHandler * | aHandler | ||
) |
Method used to send an mail to a user registered with 'email' network and who lost his/her paswword.
aJSON | is a JSON object holding:
|
aHandler | result handler whenever the call finishes (it might also be synchronous) When the user receives the email, it will contain a short code. This short code needs to be used in the loginNetwork method with the network set to "restore" , the id to "" (empty) and the secret to the actual short code. |
void CloudBuilder::CUserManager::SetProfile | ( | const CotCHelpers::CHJSON * | aJson, |
CResultHandler * | aHandler | ||
) |
Method used to associate some optional data to the logged in profile in a JSON dictionary. You can fill fields with key "email", "displayName", "lang", "firstName", "lastName", "addr1", "addr2", "addr3" and "avatar". Other fields will be ignored. These fields must be strings, and some are pre-populated when the account is created, using the available info from the social network used to create the account.
aJson | is a JSON object holding the data to save for this user. The object can hold the whole profile or just a subset of the keys. |
aHandler | result handler whenever the call finishes (it might also be synchronous) |
void CloudBuilder::CUserManager::SetProperties | ( | CResultHandler * | aHandler, |
const CotCHelpers::CHJSON * | aPropertiesList, | ||
const char * | aDomain = "private" |
||
) |
Method to save a list of properties that will be used to find opponents. You can optionnally use it to save other informations which do not need to be used for your match making needs though.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
aPropertiesList | is a JSON containing only basic types (bool, string, number. To save a date, use the UTC date in JSON string format (2013-05-17T10:43:59.599Z). i.e. { "level" : 10, "board" : "square" } |
aDomain | is the domain in which the properties have to be saved. "private" means they are valid only for this game. |
void CloudBuilder::CUserManager::SetProperty | ( | CResultHandler * | aHandler, |
const CotCHelpers::CHJSON * | aProperty, | ||
const char * | aDomain = "private" |
||
) |
Method to save one property that will be used to find opponents. You can optionnally use it to save other informations which do not need to be used for your match making needs though.
aHandler | result handler whenever the call finishes (it might also be synchronous) |
aProperty | is a JSON containing a key and a value only basic types (bool, string, number. To save a date, use the UTC date in JSON string format (2013-05-17T10:43:59.599Z). i.e. { "key" : "level", "value" : 10 } |
aDomain | is the domain in which this property has to be saved. "private" means it is valid only for this game. |
void CloudBuilder::CUserManager::UserExist | ( | const char * | aIdent, |
const char * | aNetwork, | ||
CResultHandler * | aHandler | ||
) |
Method used to check if a user is registered with a network.
aIdent | is the ID within the specified social network. |
aNetwork | the social network to look into. |
aHandler | result handler whenever the call finishes (it might also be synchronous) |