本文整理汇总了C++中OT_API类的典型用法代码示例。如果您正苦于以下问题:C++ OT_API类的具体用法?C++ OT_API怎么用?C++ OT_API使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OT_API类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OT_API_processSockets
// Not necessary in HTTP mode.
// (Request/Response; no need to check sockets periodically in that mode.)
// If you use TCP/SSL mode, you have to call this in order to check for
// server replies and process them.
OT_BOOL OT_API_processSockets(void)
{
bool bProcess = g_OT_API.processSockets();
if (bProcess)
return OT_TRUE;
return OT_FALSE;
}
示例2: OT_API_getRequest
void OT_API_getRequest(const char * SERVER_ID,
const char * USER_ID)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
g_OT_API.getRequest(theServerID, theUserID);
}
示例3: OT_API_createUserAccount
void OT_API_createUserAccount(const char * SERVER_ID,
const char * USER_ID)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
g_OT_API.createUserAccount(theServerID, theUserID);
}
示例4: OT_API_checkServerID
void OT_API_checkServerID(const char * SERVER_ID,
const char * USER_ID)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
g_OT_API.checkServerID(theServerID, theUserID);
}
示例5: OT_API_getTransactionNumber
void OT_API_getTransactionNumber(const char * SERVER_ID,
const char * USER_ID)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
g_OT_API.getTransactionNumber(theServerID, theUserID);
}
示例6: OT_API_getMint
void OT_API_getMint(const char * SERVER_ID,
const char * USER_ID,
const char * ASSET_ID)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != ASSET_ID);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAssetID(ASSET_ID);
g_OT_API.getMint(theServerID, theUserID, theAssetID);
}
示例7: OT_API_getInbox
void OT_API_getInbox(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.getInbox(theServerID, theUserID, theAcctID);
}
示例8: OT_API_loadWallet
OT_BOOL OT_API_loadWallet(const char * szPath)
{
OT_ASSERT(NULL != szPath);
OTString strPath(szPath);
bool bLoaded = g_OT_API.loadWallet(strPath);
if (bLoaded)
return OT_TRUE;
return OT_FALSE;
}
示例9: OT_API_issueBasket
void OT_API_issueBasket(const char * SERVER_ID,
const char * USER_ID,
const char * BASKET_INFO)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != BASKET_INFO);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
OTString strBasketInfo(BASKET_INFO);
g_OT_API.issueBasket(theServerID, theUserID, strBasketInfo);
}
示例10: OT_API_issueAssetType
void OT_API_issueAssetType(const char * SERVER_ID,
const char * USER_ID,
const char * THE_CONTRACT)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != THE_CONTRACT);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID);
OTString strContract(THE_CONTRACT);
g_OT_API.issueAssetType(theServerID, theUserID, strContract);
}
示例11: OT_API_notarizeDeposit
void OT_API_notarizeDeposit(const char * SERVER_ID,
const char * USER_ID,
const char * ACCT_ID,
const char * THE_PURSE)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != ACCT_ID);
OT_ASSERT(NULL != THE_PURSE);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
OTString strPurse(THE_PURSE);
g_OT_API.notarizeDeposit(theServerID, theUserID, theAcctID, strPurse);
}
示例12: OT_API_processInbox
void OT_API_processInbox(const char * SERVER_ID,
const char * USER_ID,
const char * ACCT_ID,
const char * ACCT_LEDGER)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != ACCT_ID);
OT_ASSERT(NULL != ACCT_LEDGER);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
OTString strLedger(ACCT_LEDGER);
g_OT_API.processInbox(theServerID, theUserID, theAcctID, strLedger);
}
示例13: OT_API_depositCheque
void OT_API_depositCheque(const char * SERVER_ID,
const char * USER_ID,
const char * ACCT_ID,
const char * THE_CHEQUE)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != ACCT_ID);
OT_ASSERT(NULL != THE_CHEQUE);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
OTString strCheque(THE_CHEQUE);
g_OT_API.depositCheque(theServerID, theUserID, theAcctID, strCheque);
}
示例14: OT_API_notarizeWithdrawal
void OT_API_notarizeWithdrawal(const char * SERVER_ID,
const char * USER_ID,
const char * ACCT_ID,
const char * AMOUNT)
{
OT_ASSERT(NULL != SERVER_ID);
OT_ASSERT(NULL != USER_ID);
OT_ASSERT(NULL != ACCT_ID);
OT_ASSERT(NULL != AMOUNT);
OTIdentifier theServerID(SERVER_ID), theUserID(USER_ID), theAcctID(ACCT_ID);
OTString strAmount(AMOUNT);
g_OT_API.notarizeWithdrawal(theServerID, theUserID, theAcctID, strAmount);
}
示例15: OT_API_getAssetType
OT_BOOL OT_API_getAssetType(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 bGetAssetType = g_OT_API.getAssetType(iIndex, theID, strName);
if (bGetAssetType)
return OT_TRUE;
return OT_FALSE;
}