Class FunctionCallResult<R>
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.common.FunctionCallResult<R>
-
- Type Parameters:
R
- the result type to deserialize to
public class FunctionCallResult<R> extends java.lang.Object
A basic typed function call result- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Constructor Summary
Constructors Constructor Description FunctionCallResult(ContractFunctionCallResult contractFunctionCallResult, java.lang.Class<R> clazz)
Creates an instance of FunctionCallResult with the type for deserializing the result data and the full contract response object
-
-
-
Constructor Detail
-
FunctionCallResult
public FunctionCallResult(ContractFunctionCallResult contractFunctionCallResult, java.lang.Class<R> clazz) throws java.io.IOException
Creates an instance of FunctionCallResult with the type for deserializing the result data and the full contract response object- Parameters:
contractFunctionCallResult
- the full result object from the requestclazz
- the class of type R to load the result to- Throws:
java.io.IOException
- thrown if failed to map json to class
-
-