Exemple #1
0
// Sends a message to the server to retrieve latest copy of an asset acct.
void OT_API_getAccount(const char * SERVER_ID,
					   const char * USER_ID,
					   const char * ACCT_ID)
{
	OT_ASSERT(NULL != SERVER_ID);
	OT_ASSERT(NULL != USER_ID);
	OT_ASSERT(NULL != ACCT_ID);
	
	OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);

	g_OT_API.getAccount(theServerID, theUserID, theAcctID);
}
Exemple #2
0
// Queries the wallet for an asset account.
OT_BOOL OT_API_GetAccountWallet(int iIndex, const char * THE_ID, const char * THE_NAME)
{
	OT_ASSERT(NULL != THE_ID);
	OT_ASSERT(NULL != THE_NAME);
	OT_ASSERT(iIndex > 0);
	
	OTIdentifier	theID(THE_ID);
	OTString		strName(THE_NAME);
	
	bool bGetAccount = g_OT_API.getAccount(iIndex, theID, strName);
	
	if (bGetAccount)
		return OT_TRUE;
	
	return OT_FALSE;
}