Module io.hotmoka.network
Package io.hotmoka.network.responses
Class TransactionRestResponseModel<T>
- java.lang.Object
-
- io.hotmoka.network.responses.TransactionRestResponseModel<T>
-
- Type Parameters:
T- the type response model
public class TransactionRestResponseModel<T> extends Object
Class which wraps a type response model
-
-
Field Summary
Fields Modifier and Type Field Description TtransactionResponseModelThe response model which should be an instance ofTransactionResponseModel.StringtypeThe runtime type of the response model
-
Constructor Summary
Constructors Constructor Description TransactionRestResponseModel()TransactionRestResponseModel(T transactionResponseModel)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionRestResponseModel<?>from(TransactionResponse response)Builds the model of the given transaction response.
-
-
-
Field Detail
-
transactionResponseModel
public T transactionResponseModel
The response model which should be an instance ofTransactionResponseModel.
-
type
public String type
The runtime type of the response model
-
-
Constructor Detail
-
TransactionRestResponseModel
public TransactionRestResponseModel(T transactionResponseModel)
-
TransactionRestResponseModel
public TransactionRestResponseModel()
-
-
Method Detail
-
from
public static TransactionRestResponseModel<?> from(TransactionResponse response)
Builds the model of the given transaction response.- Parameters:
response- the response- Returns:
- the corresponding model
-
-