- java.lang.Object
-
- io.hotmoka.network.requests.TransactionRestRequestModel<T>
-
- Type Parameters:
T- the type request model
public class TransactionRestRequestModel<T> extends Object
Class which wraps a type request model
-
-
Field Summary
Fields Modifier and Type Field Description TtransactionRequestModelThe request model which should be an instance ofTransactionRequestModel.StringtypeThe runtime type of the request model
-
Constructor Summary
Constructors Constructor Description TransactionRestRequestModel()TransactionRestRequestModel(T transactionRequestModel)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionRestRequestModel<?>from(TransactionRequest<?> request)Builds the model of the given request.
-
-
-
Field Detail
-
transactionRequestModel
public T transactionRequestModel
The request model which should be an instance ofTransactionRequestModel.
-
type
public String type
The runtime type of the request model
-
-
Constructor Detail
-
TransactionRestRequestModel
public TransactionRestRequestModel(T transactionRequestModel)
-
TransactionRestRequestModel
public TransactionRestRequestModel()
-
-
Method Detail
-
from
public static TransactionRestRequestModel<?> from(TransactionRequest<?> request)
Builds the model of the given request.- Parameters:
request- the request- Returns:
- the corresponding model
-
-