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 key
    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
    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
    void postOracleExtend​(OracleExtendTx oracleExtendTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
    Get an oracle_extend transaction object
    void postOracleQuery​(OracleQueryTx oracleQueryTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
    Get an oracle_query transaction object
    void postOracleRegister​(OracleRegisterTx oracleRegisterTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
    Get a oracle_register transaction object
    void postOracleRespond​(OracleRespondTx oracleRespondTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
    Get an oracle_response transaction object
    void 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

      public OracleApiImpl​(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • 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 interface OracleApi
      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 interface OracleApi
      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 interface OracleApi
      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 interface OracleApi
      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 interface OracleApi
      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 interface OracleApi
      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 interface OracleApi
      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