Class OracleApiImpl
java.lang.Object
com.kryptokrauts.aeternity.generated.api.OracleApiImpl
- All Implemented Interfaces:
OracleApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-01-10T23:40:09.108255703Z[Etc/UTC]") public class OracleApiImpl extends java.lang.Object implements OracleApi
-
Constructor Summary
Constructors Constructor Description OracleApiImpl()
OracleApiImpl(ApiClient apiClient)
-
Method Summary
Modifier and Type Method Description ApiClient
getApiClient()
void
getOracleByPubkey(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<RegisteredOracle>> resultHandler)
Get an oracle by public keyvoid
getOracleQueriesByPubkey(java.lang.String pubkey, java.lang.Boolean intAsString, java.lang.String from, java.math.BigInteger limit, java.lang.String type, io.vertx.core.Handler<io.vertx.core.AsyncResult<OracleQueries>> resultHandler)
Get oracle queries by public keyvoid
getOracleQueryByPubkeyAndQueryId(java.lang.String pubkey, java.lang.String queryId, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<OracleQuery>> resultHandler)
Get an oracle query by public key and query IDvoid
postOracleExtend(OracleExtendTx oracleExtendTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
Get an oracle_extend transaction objectvoid
postOracleQuery(OracleQueryTx oracleQueryTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
Get an oracle_query transaction objectvoid
postOracleRegister(OracleRegisterTx oracleRegisterTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
Get a oracle_register transaction objectvoid
postOracleRespond(OracleRespondTx oracleRespondTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
Get an oracle_response transaction objectvoid
setApiClient(ApiClient apiClient)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OracleApiImpl
public OracleApiImpl() -
OracleApiImpl
-
-
Method Details
-
getApiClient
-
setApiClient
-
getOracleByPubkey
public void getOracleByPubkey(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<RegisteredOracle>> resultHandler)Get an oracle by public key- Specified by:
getOracleByPubkey
in interfaceOracleApi
- Parameters:
pubkey
- The public key of the oracle (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-
getOracleQueriesByPubkey
public void getOracleQueriesByPubkey(java.lang.String pubkey, java.lang.Boolean intAsString, java.lang.String from, java.math.BigInteger limit, java.lang.String type, io.vertx.core.Handler<io.vertx.core.AsyncResult<OracleQueries>> resultHandler)Get oracle queries by public key- Specified by:
getOracleQueriesByPubkey
in interfaceOracleApi
- Parameters:
pubkey
- The public key of the oracle (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)from
- Last query id in previous page (optional)limit
- Max number of oracle queries (optional, default to 20)type
- The type of a query: open, closed or all (optional, default to all)resultHandler
- Asynchronous result handler
-
getOracleQueryByPubkeyAndQueryId
public void getOracleQueryByPubkeyAndQueryId(java.lang.String pubkey, java.lang.String queryId, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<OracleQuery>> resultHandler)Get an oracle query by public key and query ID- Specified by:
getOracleQueryByPubkeyAndQueryId
in interfaceOracleApi
- Parameters:
pubkey
- The public key of the oracle (required)queryId
- The ID of the query (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-
postOracleExtend
public void postOracleExtend(OracleExtendTx oracleExtendTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)Get an oracle_extend transaction object- Specified by:
postOracleExtend
in interfaceOracleApi
- Parameters:
oracleExtendTx
- (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-
postOracleQuery
public void postOracleQuery(OracleQueryTx oracleQueryTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)Get an oracle_query transaction object- Specified by:
postOracleQuery
in interfaceOracleApi
- Parameters:
oracleQueryTx
- (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-
postOracleRegister
public void postOracleRegister(OracleRegisterTx oracleRegisterTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)Get a oracle_register transaction object- Specified by:
postOracleRegister
in interfaceOracleApi
- Parameters:
oracleRegisterTx
- (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-
postOracleRespond
public void postOracleRespond(OracleRespondTx oracleRespondTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)Get an oracle_response transaction object- Specified by:
postOracleRespond
in interfaceOracleApi
- Parameters:
oracleRespondTx
- (required)intAsString
- If this flag is set to true, the response will have all integers set as strings (optional, default to false)resultHandler
- Asynchronous result handler
-