public boolean issueAssetType(String serverID, String nymID, String contract) throws InterruptedException {
if (!otapiJNI.OTAPI_Basic_IsNym_RegisteredAtServer(nymID, serverID)) {
OTAPI_Func theRequest = new OTAPI_Func(OTAPI_Func.FT.CREATE_USER_ACCT, serverID, nymID);
String strResponse = OTAPI_Func.SendRequest(theRequest, "CREATE_USER_ACCT");
if (!Utility.VerifyStringVal(strResponse))
{
System.out.println("IN issueAssetType: OTAPI_Func.SendRequest(() failed. (I give up.) ");
return false;
}
}
// -----------------------------------------------
OTAPI_Func theRequest = new OTAPI_Func(OTAPI_Func.FT.ISSUE_ASSET_TYPE, serverID, nymID, contract);
String strResponse = OTAPI_Func.SendRequest(theRequest, "ISSUE_ASSET_TYPE");
if (!Utility.VerifyStringVal(strResponse))
{
System.out.println("IN issueAssetType: OTAPI_Func.SendRequest(() failed. (I give up.) ");